Use Dynamics WebAPI to get LogicalName or ObjectTypeCode for Entity

Use Dynamics WebAPI to get LogicalName or ObjectTypeCode for Entity

If you need to get the LogicalName or ObjectTypeCode of an entity in your Dynamics environment you can utilize the WebAPI to get the metadata.

If you have the LogicalName of the entity you can use this url.
Format:
<Dynamics...

Continue Reading Rick A. Wilson (RAW)’s Article on their blog

Use Dynamics WebAPI to get LogicalName or ObjectTypeCode for Entity

If you need to get the LogicalName or ObjectTypeCode of an entity in your Dynamics environment you can utilize the WebAPI to get the metadata. If you have the LogicalName of the entity you can use this url. Format: /api/data/v /EntityDefinitions(LogicalName=’ ‘)?$select=ObjectTypeCode Example: https://org12345.crm.dynamics.com/api/data/v9.0/EntityDefinitions(LogicalName=’account’)?$select=ObjectTypeCode Data Returned: {“@odata.context”:”https://org6744e6cd.crm.dynamics.com/api/data/v9.0/$metadata#EntityDefinitions(ObjectTypeCode)/$entity”,”ObjectTypeCode”:1,”MetadataId”:”70816501-edb9-4740-a16c-6a5efbc05d84″} If you have the ObjectTypeCode of the entity you can use this url.

Blog Syndicated with Rick A. Wilson (RAW)’s Permission

Author: Richard Wilson

Share This Post On
Share via
Copy link
Powered by Social Snap