How to check the progress of a solution import in Dynamics CRM?

Continue reading

How to get ObjectTypeCode and LogicalName of all Entities in Dynamics CRM using Web API?

In my earlier article, i have explained,

How to get list of all Entities Display Name, Logical Name and Other info using SQL Query in MSCRM?

Now, follow the below steps to get all Entities Logical Names and Object Type Codes in Dynamics CRM Online or On-premises.

Step 1: Login to Dynamics CRM and Navigate to Settings -> Customizations.

Copy the Instance Web API URL (Service Root URL).

URL looks like the below,

https://[CRM ORG Name]

Step 2: We have to use the below text to get the ObjectTypeCode and LogicalName


Step 3: Append Instance Web API URL text with the above URL (mentioned in Step 2), final URL looks like the below,

https://[CRM ORG Name]$select=LogicalName,ObjectTypeCode

Step 4: Browse the above URL in a new Browser window to see the below result.

Note: To get all custom entities Logical Names and Object Type Codes only, then use the below URL.

https://[CRM ORG Name]$select=LogicalName,ObjectTypeCode&$filter=ObjectTypeCode gt 9999

Hope this article helps you !!!