CRM 2011: Getting entity with Javascript
I am working on some CRM 2011 Online customisations and I need to get an entity using javascript. The entity I need will be based on the ID value of another field (a Contact entity) - this Contact ID I can get fine. The entity I want is a custom entity. There may be multiple matches based on the Contact ID so I just want to get the first one in the list (order not important) So far I have looked into a few ways to do this... OData - I couldn't find enough examples on this as to what query expressions I can create, also I don't know if/how to make this work for custom entities FetchXML - I can