Hi all,
I have created a custom workflow in which I defined optionset type input argument. I have use below codes to define it in a custom workflow:
//1.
[RequiredArgument]
[Input("Method")] // what should be presented to the user
public InArgument<int> Method { get; set; } // Declaring a property of type InArgument<Date and Time>
//2
[Input("Method")] // what should be presented to the user
[RequiredArgument]
[AttributeTarget("msdyn_agreementbookingsetup", "aw_method")]
[Default ("920650002")]
//3
[Input("Method")] // what should be presented to the user
[RequiredArgument]
[AttributeTarget("msdyn_agreementbookingsetup", "aw_method")]
When I try to define it in my process as an dynamic value as shown below and save and close:
It showed me an error as shown below:
after the above error I open my 'set property' window to see the error. It showed me the static value instead of dynamics one as shown below:
Is there any way to set dynamic optionset value? or I have to use this static value option ?
Thanks
Regards,
AW
*This post is locked for comments
Please see the link anythingcrm.blogspot.com/.../crm-2011-workflow-activity-parameter.html
Hi all,
Instead of using dynamically. I used it on the basis on condition wise and now it is working. I think I have to confirm this from you all that the same condition is working for you guys or you are facing the same issue in Dynamics 365 CRM latest version.
Thanks
Regards,
AW
Hi Ravi,
I already check your suggested one but no luck.
Thanks
Regards,
AW
Not sure why it is happening. I tried a similar sample and it worked for me.
You setting the value from the same optionset from the same entity or different? Worth verifying.
Hope this helps.
Hi Ravi
I have already check this one but no luck.
Thanks
Regards,
AW
Hi Abdul,
You should be able to set the dynamic value as you have currently configured. Can you check if you have passed the value for all the other required parameters. It is possible that the error is occurring for some other input parameter?
Hope this helps.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6