Skip to main content

Notifications

Announcements

No record found.

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'

  • Suggested answer
    CRMJetty Profile Picture
    3,508 on at
  • 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
    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.

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... 292,688 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,643 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans