Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Fetch Only Label and Value of Global Option Set using WEB API V9

Posted on by Microsoft Employee

Dear Friends

Please guide me how I will fetch the only (Label and Value) of Global Option Set using WEB API V9. Currently I using the following but it shows whole metadata, But I want only Label and Value.

https://d365sample1.api.crm6.dynamics.com/api/data/v9.1/GlobalOptionSetDefinitions(Name='new_category')

fetch-global-set.png

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Fetch Only Label and Value of Global Option Set using WEB API V9

    Dear N B

    Is there any way to fetch only Labels and Values of Global Option Set by HTTP Web API ?? I dont want to Traverse the Fetched records by JavaScript or jQuery and then filter out Label and Value.

    What I want, I just write the WEB API (Get Request url) in browser ( d365sample1.api.crm6.dynamics.com/.../GlobalOptionSetDefinitions(Name='new_category') ) and it will return only Labels and Values.

  • Suggested answer
    naresh babu Profile Picture
    naresh babu 425 on at
    RE: Fetch Only Label and Value of Global Option Set using WEB API V9

    Try once, with Odata services "organizationurl+/xrmservices/2011/OrganizationData.svc/" EntitySet+$filter(or)$select eq..............  

    Please refer the below link:-

    community.dynamics.com/.../javascript-odata-query

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Fetch Only Label and Value of Global Option Set using WEB API V9

    Dear Radu

    No I do not want to parse the json and get the Value. I want to see in browser.

    Look forward to your kind reply

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Fetch Only Label and Value of Global Option Set using WEB API V9

    Hello,

    Can't you parse the response within your application and extract the values from there?

    Regards,

    Radu

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans