web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

XrmToolBox now shows labels for values in option sets?

(0) ShareShare
ReportReport
Posted on by 5

new_sampleoptionset = 100000000 
new_sampleoptionsetname = hello community

Using XrmToolBox when querying an option set field you can also query same field with "name" appended and see the labels/names. When was this added in Dynamics and how can we use from API?

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Shawn,

    You can use @OData.Community.Display.V1.FormattedValue to get label of option set Field.

    Xrm.WebApi.online.retrieveRecord("account", "49ca755a-bcdf-eb11-bacb-0022480944e8", "?$select=new_serviceplan").then(
    function success(result) {
    var new_serviceplan = result["new_serviceplan"];
    var new_serviceplan_formatted = result["new_serviceplan@OData.Community.Display.V1.FormattedValue"];
    },
    function(error) {
    Xrm.Utility.alertDialog(error.message);
    }
    );

    Test in CRM Rest Builder:

    pastedimage1632735810630v2.png

    pastedimage1632735833143v3.png

    pastedimage1632735783554v1.png

    CRM REST Builder:

    Download page: https://github.com/jlattimer/CRMRESTBuilder

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 30 Super User 2026 Season 1

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 14

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans