Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Workflow - Worker with many PositionId "loose" current hierarchy

Posted on by 570

Hi all,

I have some cases in my WF where the same worker has different positions then he is simultaneously in different hierarchies. 

The current version on AX 2012 R3 seems not supporting this scenario.

1st Hierarchy

Worker A -> Worker B -> Worker C

2nd Hierarchy

Worker E -> Worker B -> Worker D

Assuming we are in the 1st hierarchy , when worker B approves, the next approver assigned is Worker D and not worker C as expected

I had a look to the code and found the class\WorkflowLimitHierarchyProvider method findNextNode()

where I noticed the input is the personnelId (node Id) and not the positionId as expected.

This method infact get the first created positionid for the worker by method 

HcmWorker::getPrimaryPosition(hcmWorker.RecId);

and it is the reason why the hierarchy "jumps" from 1st to 2nd. This method returns the first created positionId of the worker.

Does anyone knows why it is not supported or some KB's available to manage this "standard" case?

*This post is locked for comments

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans