CRM 2011 oData query confusion -


I am very new to CRM development, I was trying to, I am about the code below Confused slightly, please check:

  var xp = Xrm.Page; Function Onload (Reference) {var accountId = xp.data.entity.getId (); MostRecentQuery = "/XRMServices/2011/organizationData.svc/ContactSet $ ​​selection = FullName, JobTitle, EMailAddress1, Telephone1 & top $ 1 & $ orderby = CreatedOn desc & amp; $ filter = ParentCustomerId / ID eq GUID '' + ACCOUNTID + "'; GetContact (most recent," most "); ....}   

The Javascript function is implemented when AccountForm The first row gets the account ID The next line is the ODATA query ContactSet In this query, I get confused here, how can we get ContactEntity based on the GUID of AccountEntity I am doing this?

Check after

I got the answer to this question!

Actually there is a look 'parent customer' representing Contact Identity, the unique identifier of the account or contact associated with this contact, so we can form a contact parent You can choose the account / contact.

This account referenced where it returned the OData query exactly the top 1 contact.

I hope this is clear.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -