
Hello community,
I've been tasked with an assignment that requires me to query lookup fields from an entity form dynamically.
OData2 requires the entity type to be case sensitive yet the entity type i get from the field is always lower case.
is ther anyway to query CRM from javascript using the lowercase entity name?
this must work on both 2011 and 365 v9
*This post is locked for comments
I have the same question (0)you will need to query the metadata first in order to get the Schema Name (case sensitive) and after build your query.
you specified that needs to work also in crm 2011, keep in mind that the endpoint to query is different from 2011 to v9, so based on crm version (that you can verify by checking certain properties for example) you need to use the 2011 endpoint or use Xrm.WebApi (where you don't deal with the schema name)
hope it helps