Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Assign workflow instance to a second approver through code X++

(1) ShareShare
ReportReport
Posted on by 35
Hello All,
 
I have a requirement to assign a custom workflow instance (Pending vendor invoice) to a second approver through code, when first approver /Completes/ the workflow.
 
Condition: Signing Limit for users has been set. If first approver does not meet the signing limit criteria, it should be assigned to First Approvers manager(Second approver). Signing limit condition check has been handled in my custom code already, only thing is how to assign the second and further approvers in workflow. 
 
In Standard:
I can see in WorkflowWorkItemTable a new record being created for second approver after first approver completes the workflow. But after debugging I could not figure out how/when it is being created.
 
Question: 
How I can assign workflow to second or further approver in the same workflow instance via code.
 
Regards,
Monika

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.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,684 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans