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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Which code in Workflow batch job change status from cancelled to draft

(0) ShareShare
ReportReport
Posted on by

Now I got 1 PR stucked with "Cancelled" status.

Normally, after Workflow batch run, the status change to draft and then we can submit the workflow.

However, for this particular workflow, it stuck with "Cancelled" status.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Jonathan  Halland Profile Picture
    11,310 on at

    Hi. There is no code in the batch job itself, but in the event handlers for the workflow type you are using. For Purchase Requisitions you need to look at: PurchReqWFTypeEventHandler in the canceled method.

    I suspect in your case though that somebody has actually cancelled an approved requisition due to them no longer requiring it. This is not part of workflow and you should be able to reset this to draft.

    I hope this helps

  • Community Member Profile Picture
    on at

    Dear Jonathan,

    Thank you very much :-)

  • Community Member Profile Picture
    on at

    i have some problem like you dsin, how step bye step to fix this problem? help me please.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans