Skip to main content

Notifications

Announcements

No record found.

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

How to add new node in start from hierarchy in purchase requisition workflow?

Posted on by 5

Hi All,

I'm trying to add new node for 'Previous Approver' in start from hierarchy in purchase requisition workflow. I was able to add new node using below code in WorkflowHierarchyProviderHelper class, but when workflow runs and 'Previous Approver' condition is encountered, its giving the below error.

pastedimage1645287969010v1.png          pastedimage1645288268108v3.png

Stopped (error): X++ Exception: The hierarchy provider did not return any users.
at SysWorkflowHierarchyProvider-resolve
SysWorkflowHierarchyProvider-resolveHierarchy
SysWorkflowQueue-resume

I debugged the above error and found its not able to get any value in 'valueNodeData' variable of getInitialNodeId() method of class SysWorkflowHierarchyProvider class and further not able to find users for the hierarchy.

pastedimage1645288659860v4.png

Could you please suggest why its not getting value for valueNodeData and how to get the value of Previous Approver and find its hierarchy in order to send the workflow approval to the person who is higher in hierarchy for the Previous Approver?

Help is much appreciated.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans