web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 150

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 (0)
  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: Automatic return to user in rejected workflow

    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
    299,415 Super User 2025 Season 2 on at
    RE: Automatic return to user in rejected workflow

    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
    150 on at
    RE: Automatic return to user in rejected workflow

    There is no class with eventhandler on rejection

  • Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: Automatic return to user in rejected workflow

    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
    150 on at
    RE: Automatic return to user in rejected workflow

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,841

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 783 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 490 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans