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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Code for resubmit manager workflow

(0) ShareShare
ReportReport
Posted on by 371

Hello everyone,

want to know the code for the resubmit manager in workflow in ax 2012 .... suppose admin send back to the user to make some updation and resubmit the request how we can achieve this in ax 2012.....

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,988 Super User 2026 Season 1 on at

    Hi Vinay,

    Should the user resubmit multiple of his workflows or is there a version update and do you want to update all with use of a script?

  • vinaytak Profile Picture
    371 on at

    @André Arnaud de Calavon... when the document route back to user then the user will do some changes and again resubmit to hr for the approval this is the flow diagram of workflow which i have....

  • Suggested answer
    Zain Bokhari Profile Picture
    3,208 Moderator on at

    You can take a look at PurchAgreementWorkflow for reference.

    or this link.

  • André Arnaud de Calavon Profile Picture
    303,988 Super User 2026 Season 1 on at

    Hi Vinay,

    You have created an own new workflow type? Then go for the link Zain provided.

  • vinaytak Profile Picture
    371 on at

    thanx @André Arnaud de Calavon for your reply....i have create my own custom workflow

  • Suggested answer
    Jonathan  Halland Profile Picture
    11,310 on at

    Hi Vinay.

    Standard AX follows 2 paths when it comes to resubmission. In some cases the Resubmit will simply route the workitem back to the original approver who "returned" the item and the workflow process will continue as usual. In other cases such as with Purchase Requisitions, the Resubmission will actually cancel the current workflow process and restart the workflow process from the beginning. The second case is much more complex to code, however the first one is simply a matter of calling code similar to the below code. If you require the first option take a look at the "reSubmitPurchReqTable" method of the PurchReqWorkflow class as well as the "Cancelled" method on the PurchReqWFTypeEventHandler class. Basically the Resubmit method triggers a cancel action on the workflow, this action will then trigger the "Cancelled" event to be called with performs a normal submit back into workflow.

     workItem    = _args.caller().getActiveWorkflowWorkItem();
                        WorkflowWorkItemActionManager::dispatchWorkItemAction(  workItem,
                                                                                workflowWorkItemActionDialog.parmWorkflowComment(),
                                                                                workflowWorkItemActionDialog.parmTargetUser(),
                                                                                WorkflowWorkItemActionType::Resubmit,
                                                                                _args.menuItemName(),
                                                                                false);


  • Community Member Profile Picture
    on at

    Dear Mr. Jonathan Halland,

    your mention here - "In some cases the Resubmit will simply route the workitem back to the original approver who "returned" the item and the workflow process will continue as usual". I have the same requirement for PO. Please suggest me how to do.

    Thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans