Hello Team,
I want to set two option control from the code activity by the workflow.
Please send me the correct way.I need to change it by the C# code.
*This post is locked for comments
Hello Team,
I want to set two option control from the code activity by the workflow.
Please send me the correct way.I need to change it by the C# code.
*This post is locked for comments
Hi Rahul,
please have a look on below links,it might help you.
deepakexploring.wordpress.com/.../retrieve-option-set-selected-text-value-in-crm-2011
Thanks for reply.
I want set value of two option set control from C# code via a cutome code activity.
Hi Rahul,
It might help you
community.dynamics.com/.../136016
if you need Boolean (both input and output)
*For Input & output
[Input("bool input")]
[Output("bool output")]
public OutArgument<bool> outBool{ get; set; }
Output only:
[Output("bool output")]
public OutArgument<bool> outBool{ get; set; }
To set:
this.outBool.Set(context, true); //if true
this.outBool.Set(context, false); //if false
Hope this helps.
Thanks.
Hello,
Assuming you want setup output argument to set two optionset, you need to define boolean property.
other wise you can simply set entityobject["fieldname"]=true;
For output:
[Output("Response")]
public OutArgument<bool> ResponseParameter { get; set; }
then you can set this parameter using following code
ResponseParameter.Set(executionContext, true);
Now this argument will be available under form assistant while destining workflow
you can refer our post:mahenderpal.wordpress.com/.../step-by-step-creating-custom-workflow-in-microsoft-crm-2011 for how to work with custom workflow
Thanks
You have to set value as Boolean value like true or false
Sample code to set two option set value
entity.Attributes["attributename"] = true;
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,321
Most Valuable Professional
nmaenpaa
101,156