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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Option Set field, want to make value a string, default is integer

(0) ShareShare
ReportReport
Posted on by 154

When I looked at a particular custom field that is an Option Set, the values are things like 100000001 for label/option "No", 100000002 for label/option "Yes", etc...

This is what shows up in the Web API when I query it. Not very informative at all. 

1. When I try to change the Value to a string it tells me to enter a Value from 0 through 2,147,483,646. Is there anyway at all to add a string to the Value?

2. If not, when I query using the Web API, is there a way to have it bring in the option/label?

If none of these are doable, I'll just do the query, and replace these integers with strings on the back-end of my app.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi,

    Unfortunately you can not set optionset value as string , this is  integer type.

    Yes you can get the text using formatted value-

    See below reference-

    http://himbap.com/blog/?p=2077

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    You can download CRMRESTBuilder and import the solution to get the tool   and build your query .

    github.com/.../releases

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans