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 hierarchy assignment approval setup but run into duplicate approval

(0) ShareShare
ReportReport
Posted on by 1,559

Hi Friends,

We setup a AP invoice workflow to leverage the Management Hierarchy, it has multiple approval steps. But due to the organization's reporting structure,

someone end up approve same invoice twice, how can we avoid it? Someone said we can customize it, but no detail of how to do it.

Many thanks.

River

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    Hi River,

    There might be several types of solution.

    The first one is trying to find the place where the user will be assigned to a workflow task in general. We did another customization on this logic in the past. I have to find details back. But after the standard assignment, you can try to add logic for an auto approval of this user if he did approve the same workflow document instance before.

    Another option is creating an own workflow provider which will be similar to the management hierarchy or customize the standard one to skip a user if he did approve before.

    During writing, the second option with a new WF provider will be the one that is having the least impact in case of updates/upgrades.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello River,

    How can it happen that this person ended up approving twice? Does he has multiple users/jobs/positions assigned?

    Best regards,

    Ludwig

  • Ganriver1 Profile Picture
    1,559 on at

    Hi Ludwig,

    It's due to approval limit and gap between  different commanding chain.

    People on top don't like or need to approve everything, but, in many cases, some people report to them directly has much less approval limit, so we have to design a workflow in a certain way.

    But, C level people could show up in different steps in workflow and approve twice.

  • Ganriver1 Profile Picture
    1,559 on at

    Hi Andre,

    If you can provide some sample code, that would be much appreciated.

    Best regards,

    River

  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    Hi River,

    I understand that you would like to receive some examples. I haven't done your requirement as customization, so every line of coding would be new to me as well. I can only try to find the method where we did another customization in the past.

  • Ganriver1 Profile Picture
    1,559 on at

    Hi Andre,

    That would be good enough.

    Regards,

  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    Hi River,

    In the past, we did alternative security checks on the class SysWorkflowHelper.

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans