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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

how to retrieve a option set value in workflow

(0) ShareShare
ReportReport
Posted on by 20

how to retrieve a opetion set value and if condition is true then set another 2 option set value as 'yes'

I have the same question (0)
  • Suggested answer
    PabloCRP Profile Picture
    1,088 on at
    RE: how to retrieve a option set value in workflow

    Hi Shweta Pawar,

    In your Workflow(WF) add a new Check Condition and in it's properties validate the optionset value and set the desired value.

    pastedimage1613019601441v1.png

    then add a new Update Records and in its properties set the values of other field as yes

    pastedimage1613019733061v2.png

    then save and activate your WF.

    regards.

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: how to retrieve a option set value in workflow

    Hi Shweta,

    Assuming you are working with custom workflow as you have tagged SDK, you can simply get your option set value like below and similarly set another attributes something like this

    if(EntityObject.Contains("OptionsetFieldName")

    {

    int _value=EntityObject.GetAttributeValue<OptionSetValue>("OptionsetFieldName").Value;

    if(_value==YOUR_Check)

    {

    EntityObject["OtherOptionsetFieldName"] = new OptionSetValue(VALUE_YOUWANTOSET);

    }

    }

  • Suggested answer
    CRMJetty Profile Picture
    3,512 on at

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans