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 :
Microsoft Dynamics CRM (Archived)

Convert OptionSetValue

(0) ShareShare
ReportReport
Posted on by 255

Hi

I need to convert an optionsetvalue to a string but haven't been able to.

I'm using vb.Net

I retrieve the value initially using this 

currentStatus = entity.Attributes("statecode")

*This post is locked for comments

  • Verified answer
    Pawar Pravin Profile Picture
    5,237 on at

    Hi ,

    This is as per my understanding that you want to retrieve label of optionset option. In that case you need use following syntax:

    string actualValue = entity.FormattedValues[FieldLogicalName];

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
TNJ_CRM_Team Profile Picture

TNJ_CRM_Team 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans