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

SCOTtish summit 2021

On February the 27th Scottish Summit 2021 will come to you as a virtual event. With over 250 sessions from all Microsoft technologies. You need to register for your FREE ticket and download the Scottish Summit App to see all the great sessions.