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 Url>/api/data/v<Version>/EntityDefinitions(LogicalName='<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.

Format:
<Dynamics Url>/api/data/v<Version>/EntityDefinitions?$filter=ObjectTypeCode eq <ObjectTypeCode>&$select=LogicalName

Example:
https://org12345.crm.dynamics.com/api/data/v9.0/EntityDefinitions?$filter=ObjectTypeCode eq 1&$select=LogicalName

Data Returned:
{"@odata.context":"https://org6744e6cd.crm.dynamics.com/api/data/v9.0/$metadata#EntityDefinitions(LogicalName)","value":[{"LogicalName":"account","MetadataId":"70816501-edb9-4740-a16c-6a5efbc05d84"}]}

Comments


  1. it is really a great and helpful piece of info. I am glad that you shared this helpful information with us. Please keep us informed like this. Thank you for sharing.
    malaysian embassy singapore

    ReplyDelete
  2. Thanks for sharing this piece of information. I really enjoyed it. keep up the good work and all the very best of luck! I like this post
    Website :- Gas and Electric Geyser near me

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. Great article! This is the type of information that are meant to
    be shared across the internet. Thank you for sharing such a useful post. Very Interesting Post! I regularly follow this kind of Blog.
    click here

    ReplyDelete
  5. For latest information you have to visit web and on world wide-web I found this website as best web page for latest updates.Very nice post, I really love this website, keep it up thanks..To getting a visa for Turkey,There is a need to fill a visa on arrival Turkey through the Turkey visa online guide.

    ReplyDelete
  6. Thank you �� The international travelers who traveling to Kenya need visas Kenya. That they can apply online and can get the 24*7 customer assistant.

    ReplyDelete
  7. I get your meaning, saved in my bookmarks, a very decent website.. This new Azerbaijan visa system makes traveling to Azerbaijan a lot easier as you no longer need to go to the embassy of your country. You can apply online for an Azerbaijan e visa via the Azerbaijan evisa website.

    ReplyDelete
  8. Thanks for sharing excellent information. Keep sharing such useful information.. You can read about info related to FRRO through India evisa website. And apply for an efrro India.

    ReplyDelete
  9. What an outstanding blog! It's both informative and engaging, presented masterfully. Your ability to clarify complex ideas is impressive. The writing style is captivating and user-friendly. Thank you for sharing your expertise! I've gained valuable insights and eagerly look forward to more. Keep up the fantastic work. When you are searching for an India tourist visa application, make sure to gather all necessary documents, such as a valid passport, recent photographs, and a completed application form. Submit your application online, following instructions carefully to ensure accurate information and expedite the processing of your tourist visa application.

    ReplyDelete
  10. I'm excited to showcase excerpts from your articles on my blog. Rest assured, I'll provide clear attribution with transparent source links. With our shared interests, I'm confident your content will enhance my readers' experience. Your collaboration is deeply appreciated. Thank you sincerely. Baku visa from Pakistan, For Pakistani citizens, obtaining a visa for Baku, Azerbaijan involves a straightforward process. You can apply for an e-visa online, simplifying the procedure. Ensure you have the necessary documentation and fees ready before applying to expedite the process efficiently.

    ReplyDelete
  11. Your article was a captivating journey through the realms of insight. I would like to share some information with you. Discovering the e-visa fee for Bahrain involves a simple inquiry: "How much is the visa fee for Bahrain?" This essential question unveils the necessary information for travelers. Ensuring a hassle-free journey begins with understanding the prerequisites, including financial considerations for entry.

    ReplyDelete
  12. I'm truly enthusiastic about featuring excerpts from your articles on my blog. You can trust that I'll attribute them appropriately, ensuring proper recognition of the original source. Your willingness to collaborate would mean a great deal to me. Thank you for taking the time to contemplate this partnership. How to get mexico visa from India, To obtain a Mexico eVisa from India, applicants can apply online. They need to fill out the application form, upload required documents, pay the fee, and await approval before traveling.

    ReplyDelete

Post a Comment

Popular posts from this blog

Add User As Local Administrator On Domain Controller

Calling Dataverse Web API in PowerShell using Client Credentials

Windows Server 2008R2 VMs Shut Down After 1 to 2 Hours