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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Automatic return to user in rejected workflow

(0) ShareShare
ReportReport
Posted on by 154

When the manager rejects the workflow,

then instead of the the last step being rejected in workflowtrackingstatus table, 

It gets returns back to the user and the status becomes pending .

How do i stop the return?

The table in which the item is getting rejected is custom .

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Prachi,

    When rejecting the workflow, the usual behavior is that the workflow process ends. The submitting user can then make the changes as needed and can re-submit the workflow. Please check here for details of the workflow approval process.

    Since the table you are dealing with is custom, you mist have created a custom workflow process as well. You should try debugging the event handler on rejection to check why the status is being set as pending.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    308,247 Super User 2026 Season 2 on at

    Hi Prachi,

    Rejection results in ending the workflow. You might implement a review task within the workflow, but this would be then a standard part of your workflow configuration. As procedure, you can send an alert to the user who initiated the workflow to look at the comments and correct the data. Usually during the approval, there is no option to modify the record anyway. So rejection and re-submission is the recommended approach.

  • PrachiGupta97 Profile Picture
    154 on at

    There is no class with eventhandler on rejection

  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Prachi,

    Have you checked the class which is the event handler for the workflow approval? For an example, class PurchReqApprovalEventHandler. Method "returned" in this class sets the purchase requisition status to "Rejected".

  • PrachiGupta97 Profile Picture
    154 on at

    Hi sir,

    Yes , I found the class. It is a custom class since the form and table and workflow are all custom.

    It has a method return and also a method rejected.

    There the status is changed to rejected only there is nothing about resubmit.

    How do I debug this class ? I can insert a breakpoint on this method  but do I need to create a record ans submit for workflow while connected to iisexpress?

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

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 213

#3
Subra Profile Picture

Subra 200 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans