Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

pass option set value to custom workflow

Posted on by 1,695

I'm trying to write a workflow that requires an optionset value to be passed as a required argument

with a string, its easy enough 

       <RequiredArgument>
        <Input("new_Licence")>
        Public Property new_Licence() As InArgument(Of String)
            Get
                Return m_new_Licence
            End Get
            Set
                m_new_Licence = Value
            End Set
        End Property
        Private m_new_Licence As InArgument(Of String)

but I cannot find how to do the same with an option set value

*This post is locked for comments

  • Verified answer
    Michel van den Brink Profile Picture
    Michel van den Brink 4,697 on at
    RE: pass option set value to custom workflow

    Hello,

    For Option Set you need to add 1 more attribute decorator above your property:

    <AttributeTarget("entityname", "fieldname")>      VB
    [AttributeTarget("entityname", "fieldname")] C#

    Global Option Sets are unfortunately not supported, it has to be a local Option Set.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: pass option set value to custom workflow

    Hi,

    refer to below blog

    anythingcrm.blogspot.my/.../crm-2011-workflow-activity-parameter.html

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans