Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Workflow delegate to new user

(0) ShareShare
ReportReport
Posted on by 22

Hi all,

User has given few journals,  which failed to approve the workflow because the approve no more exist in the organization's. 

GL - General Journals 

So, they provide us new approver name to add. So, that he can the approve those journals.

Note - The particular user I'd and recid from LesgerJournalTable is not found in workflowworkitemTable.

Kindly let me know how will delegate to new user for those journals through x++?

Please give me more shed on this .

Thanks!

  • Suggested answer
    Michal Krejza Profile Picture
    on at
    RE: Workflow delegate to new user

    Hi @rp@n ,

    Please try the link below

    mohsinkhalid.com/.../

  • @rp@n Profile Picture
    22 on at
    RE: Workflow delegate to new user

    Hi Dalia

    Yes i have  added both user in the below configuration.

    5875.p1.jpg

    Is this correct place above Orange Marked?

    Could please send me the script for recall the workflow. So, that I can use the script for all journals and user can SUBMIT the workflow again.

    Please give me more shed on this.

    thanks!

  • Suggested answer
    dalila Profile Picture
    55 on at
    RE: Workflow delegate to new user

    Hello,

    Have you tried to recall the submitted journals and sumit them again after modification of the workflow by designing the new approver on the cycle.

    In order to avoid this problem, is better to define 2 approvers by level within single approval rule.

    Best regards.

  • Suggested answer
    Ramit Paul Profile Picture
    22,572 Most Valuable Professional on at
    RE: Workflow delegate to new user

    Can you share the setup?

    I think you can just remove them and add new users from there.

    If the above is done then you can just write a script to recall the WF and resubmit as fresh.

  • @rp@n Profile Picture
    22 on at
    RE: Workflow delegate to new user

    Workflow user

    If suppose one is unavailable then another can approve.

  • Ramit Paul Profile Picture
    22,572 Most Valuable Professional on at
    RE: Workflow delegate to new user

    Hi,

    What do you mean by adding two approvers?

    Which type of assignments you are using for workflow?

    Workflow user?

    Managerial Hierarchy ?

    User group?

  • @rp@n Profile Picture
    22 on at
    RE: Workflow delegate to new user

    Hi Ramit,

    Yes, I thought the same before and I have done the same before for other requirement. But here found that user is not exist in AX. So, unable to replace. That is the problem.

    I have script to replace user with 1 approver not multiples.  They asked me to add 2 approves...

    So, I am thinking about configuration,  if possible.

    Please give me more shed on this

  • Suggested answer
    Ramit Paul Profile Picture
    22,572 Most Valuable Professional on at
    RE: Workflow delegate to new user

    Hi,

    I dont think this is possible by configuration as such.

    You need to think of a script to replace the user, this is one of the solution I can think of.

  • @rp@n Profile Picture
    22 on at
    RE: Workflow delegate to new user

    Ramit,

    Customer dont wants to do one by one. They wants to do in bulk.

    Is it possible through workflow configuration , I mean if I add those users with OR condition without any script.

    Please give me more shed on this

  • @rp@n Profile Picture
    22 on at
    RE: Workflow delegate to new user

    Hi Ramit,

    It's about 75 journals

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,321 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans