Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Need to pull the Optionset value(number) selected on Contact field to Custom Workflow code

Posted on by 320

Hi,

I have requirement to pull the Optionset value(number) selected on Contact field to Custom Workflow code. I tried the below code to take the input field but it shows me all the optionset values while setting the input. I want to take the value whatever is selected on the Contact field when workflow is triggered.

[RequiredArgument]
[AttributeTarget("contact", "language")] //Pass Language
[Input("Language Id")]
public InArgument<OptionSetValue> LanguageIdIn { get; set; }

Capture9.JPG

*This post is locked for comments

  • sai123456 Profile Picture
    sai123456 320 on at
    RE: Need to pull the Optionset value(number) selected on Contact field to Custom Workflow code

    Global optionset, CRM 2016

  • sai123456 Profile Picture
    sai123456 320 on at
    RE: Need to pull the Optionset value(number) selected on Contact field to Custom Workflow code

    I don't see any option to select there. It's empty.

  • RE: Need to pull the Optionset value(number) selected on Contact field to Custom Workflow code

    Hi,

    Is this a global optionset?

    Could you also tell your CRM version?

  • Suggested answer
    Aditya Profile Picture
    Aditya 260 on at
    RE: Need to pull the Optionset value(number) selected on Contact field to Custom Workflow code

    pastedimage1563840273206v1.png

    I think you need to put the Contact's optionset field (whose value you want to map in the Language Id) in the 2nd "Look For" input  as shown in the above image.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans