Notifications
Announcements
No record found.
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
You have to set value as Boolean value like true or false
Sample code to set two option set value
entity.Attributes["attributename"] = true;
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
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:
To set:
this.outBool.Set(context, true); //if true
this.outBool.Set(context, false); //if false
Hope this helps.
Thanks.
Thanks for reply.I want set value of two option set control from C# code via a cutome code activity.
please have a look on below links,it might help you.
deepakexploring.wordpress.com/.../retrieve-option-set-selected-text-value-in-crm-2011
stackoverflow.com/.../how-can-we-set-second-picklist-value-dynamically-with-string-value-is-know-in-cr
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2