Hi everybody,
I have created a workflow in which I need to get a option set value.When I try to get the participant type, I get an NullReferenceException. If I comment out the participanttype code, the workflow runs successfully.
My code is below
//Get the participant type option value Participant p = new Participant{name = Name.Get(executionContext),ParticipantType = ParticipantType.Get(executionContext).Value };// In Args [Input("ParticipantType")] [AttributeTarget("transaction_address", "participanttype")]public InArgument<OptionSetValue> ParticipantType { get; set; }
How do I get the optionset value?
Thanks in advance.