Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Retrieve values from Option Set

Posted on by 5

Dear all, 

Is it possible to retrieve all values from Option set in Portal Management/Web Template? 

Regards, 

M

  • Manning Profile Picture
    Manning 5 on at
    RE: Retrieve values from Option Set

    Hi, thank you for the answer. 

    If I use web api, as you mention from the first link, it is crm url, and client needs credentionals from crm to see those data. It does not work for me.

  • Inogic Profile Picture
    Inogic 24,094 on at
    RE: Retrieve values from Option Set

    You can use WEB API to retrieve the EntityMetadata of the Option set attribute to get all the values, below is the reference link for the same.

    Organization URL/api/data/v8.1/EntityDefinitions(70816501-edb9-4740-a16c-6a5efbc05d84)/Attributes/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=OptionSet,GlobalOptionSet

    You can also refer to the below links for using WEB API in Portal.

    https://www.inogic.com/blog/2021/03/execute-different-web-api-operations-using-powerapps-portals-preview

    For more details regarding Query metadata using the WEB API, please refer to the below link.

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/mt607522(v=crm.8)?redirectedfrom=MSDN#bkmk_queryAttributes

    Hope this helps.

    Thanks!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans