Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

how to get field values from metadata

Posted on by 645

I have an entity type code and I need to get values of picklist field from that entity using javascript, how do I do that?

  • sahara Profile Picture
    sahara 645 on at
    RE: how to get field values from metadata

    thanks my situation is that I don't use the data that is on my entity, I need to get data from a field of an other entity

  • Suggested answer
    RE: how to get field values from metadata

    Hi Sahara,

    + you can retrieve values of picklist field from a given Entity, querying by Entity Logical Name, using query below

    YOURORG.crm4.dynamics.com/.../Microsoft.Dynamics.CRM.PicklistAttributeMetadata

    + If you really need to use ObjectTypeCode, you can retrieve LogicalName by OBjectTypeCode, before run query above:

    YOURORG.crm4.dynamics.com/.../EntityDefinitions eq 1

    + More details:

    docs.microsoft.com/.../query-metadata-web-api

    www.inogic.com/.../

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: how to get field values from metadata

    Hi Sahara,

    I have created one blog to get all values and labels of pick-list using JS, Please refer below url for your reference, this may help you:

    pravinpawarweb.wordpress.com/.../

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans