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 :
Customer Service forum

How to update option set field?

(0) ShareShare
ReportReport
Posted on by 95

Hello,

Is it possible to automatically update option set field?

I've created a workflow, which creates a new account when I create a new lead. 

The workflow updates fields from lead to account, but when I want to update option set field (the same as in lead). I have no choice. What can I do?

pastedimage1565340688626v1.png

Categories:
I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    Looks like we could not update the child records according to parent record in workflow.

    I've also  tried field mapping but also failed.

    I suggest that you could create a custom workflow with C# to assign the value of option set from leads to accounts.

    About how to get/set field values in C#, you could refer to this blog.

    community.dynamics.com/.../get-set-field-values-in-c-javascript-and-utility-functions

    Hope it helps.

    Best Regards,

    Leo

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    You can only update the if the optionset si Global optionset and if the same global optionset is used in both the entity. In your case, you will have to use if else block if you still want to update otherwise change the optionset and use a new optionset  with global optionset value in lead & account.

    Hope this helps.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans