web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Workflow - Worker with many PositionId "loose" current hierarchy

(0) ShareShare
ReportReport
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

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Scott_itD Profile Picture

Scott_itD 2 Community Manager

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans