Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

How to update option set field?

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:
  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to update option set field?

    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.

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: How to update option set field?

    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

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans