Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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
    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
    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
    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
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,041 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,860 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans