Workflow Notification - Approval Rejection Reason

Steven Parker
Giga Sage

So the out of the box "Change Request - Normal" workflow has a notification on the Rejection path that goes to the Opened By individual.  This notification has the following line in it:

Reason: ${reason}

I assume that line is supposed to contain the Approval Rejection reason, but it contains nothing.  I also don't see any other variables I can use to add the Approver Rejection Reason into the workflow notification (I tried every Approval variable and I've tried ${comments}).  So how do I add the Approval Rejection reason into the workflow notification?  

I do not want to modify an Email notification for this either...I want to use the Workflow Notification just like the out of the box workflow is using.

Here is the out of the box notification:

find_real_file.png

 

Here is my current notification (I removed Reason: ${reason} because it's blank):

find_real_file.png


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
3 REPLIES 3

Michael Fry1
Kilo Patron

Hmmm . . . i don't see reason out of the box. I do see Comments, which should contain the approvers comments regardless of state. Which out of box notification are you showing?

This is the OOB "Change Request - Normal" workflow and the Notification on the Rejection path.

If you open a Notification in a workflow, one of the fields you can add to it is Reason so it's there...just nothing in it even though the OOB notification in the workflow uses it:

find_real_file.png


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

Joe Wilmoth
ServiceNow Employee
ServiceNow Employee

Hi,

You could create a business rule that will add the reason to the comments for the change record when rejection happens on update. This should fire an OOB notification to let the user know that comments have been added to the record and display the rejection reason.

Thank you,

joe