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)

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

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