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 .

I have the same question (2)
  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 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
    303,730 Super User 2026 Season 1 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,423 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 616

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 460 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans