Hi guys!
I have a custom requirement to assign one or more user/users to the workflow after submitting.
I know, we can change the assigned user through WorkflowWorkItemTable but how can we assign a new user to the workflow.
I want to achieve this through code, as I am fetching the new users I want to assign from a custom criteria.
Regards,
Hamza
*This post is locked for comments
Hi,
I have a similar requirement. Could you please share the solution?
Hi Jonathan,
Thanks for your help.
It been a long time since this I had this requirement.
It was about assigning the workflow item to a list of users (created dynamically based on some X criteria). At that time what I achieved was to assign new single user but my requirement is to assign a list of new users and I was stuck at it.
I am not sure now, that I tried the Workflow Participant Provider.
On some digging, I think this might solve the problem. I will try it whenever I find time to do so.
Thanks.
Regards,
Hamza.
Hi Hamza
Can you explain you requirements in more details and where you are still struggling. The solution to your problem of "assigning to multiple users based on some custom criteria" is to use a workflow participant provider, unfortunately without any more details all we can do is point you to some code walk throughs on how to build one.
Hi Raja,
It would be great if you can share the working/tested solution.
Regards,
Hamza
Hi Jonathan,
I got the solution already any way thank you..
Raja.
The way to accomplish this is through creating a WorkflowParticipantProvider. It allows you to assign in any way you wish. E.G. Assign based on a custom table (list of users) or rules etc
Hi Moiz,
you got the solution????
Hi Ravi,
Can you please share the solution.
Hi Hamza,
I got the solution working fine now.
Hi Raja,
Unfortunately, I have not found any solution to this problem yet.
If you find anything related in the future, please share. It would be helpful for all community.
Regards,
Hamza
André Arnaud de Cal...
292,074
Super User 2025 Season 1
Martin Dráb
230,900
Most Valuable Professional
nmaenpaa
101,156