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. This blog is very interesting and powerful content. I got more important information and it's very useful for improve my knowledge. share more
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete

  2. 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
  3. My Assignment Help Now is a valuable source of getting experts’ help for academic papers. Connecting with the well-qualified professionals helps you to score top grades. Students who have no ideas about how to start their papers, they can search for our superior assignment help service to compose their documents.
    Assignment Help

    ReplyDelete
  4. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.
    Website: Matka Charts

    ReplyDelete
  5. Play fantasy cricket on India's no.1 App and get a chance to win up to 50 lakhs in every match. Download the app now!

    ReplyDelete
  6. Thanks for the information. You have discussed an interesting topic that everybody should know. Keep posting these kind of posts.
    Click here: artificial jewellery

    ReplyDelete
  7. 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
  8. Thanks for sharing this information. I have shared this link with others keep posting such information.
    Website house for sale in jaipur

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

    ReplyDelete
  10. 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
  11. 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
  12. 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
  13. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

    IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

    corporate training in chennai corporate training in chennai

    corporate training companies in india corporate training companies in india

    corporate training companies in chennai corporate training companies in chennai

    I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai Project Centers in Chennai

    ReplyDelete
  14. 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
  15. 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
  16. This article is really very helpful for me and I really appreciate you for sharing it with me… Emergency / emergency Indian visa application form (Process within 1 to 3 days) You can easily avail the facility for immediate processing of your Indian Visa by applying through the fast track Indian visa services we provide.

    ReplyDelete
  17. I really like your site it’s very impressive. Thanks for the inspiration! I really appreciate people like you!
    website: Smoking Jackets

    ReplyDelete
  18. Impressive and powerful suggestion by the author of this blog are really helpful to me. Vonex phones

    ReplyDelete

  19. Hey sir, Thanks for sharing this superb article.. Anyone interested in Travel in India for medical reasons. They can apply for India medical visa online. The Government of India allows all foreign nationals to enter India for medical purposes.


    ReplyDelete
  20. Thank You for Providing Such insightful information. If someone is looking for the Quickbooks Customer Service in US.

    ReplyDelete

Post a Comment

Popular posts from this blog

Add User As Local Administrator On Domain Controller

Horizontally Scroll A Large Power Apps Gallery

Custom Grid/Subgrid Using Office-UI-Fabric DetailsList