Reject not ending workflow

brendanwilson84
Kilo Guru

Hi Guys

I am having some problems with our workflow. If we approve at each level, the workflow works fine and goes through all the stages. However, if we reject at a approval level, it just stops.   It should go to notification and then to end.

I have no idea why this is happening as just last week, this was working fine.   On the actual status, it does appear as rejected too

Any help/tips would be greatly appreciated.

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Hi,



I think the issue may be with script becoz if your script is setting wrong value when you click on reject then it wont work.



See your reject button sets values properly. Becoz activity.result='rejected' rite, so be sure that in your script you set it properly.


View solution in original post

7 REPLIES 7

amaradiswamy
Kilo Sage

Hi Wilson,



Right-click on "rejected" and see condtion was filled with activity.result == 'rejected' or not.



Thanks and regards,


Swamy


Thanks Swamy



Quite new to servicenow and first workflow. In the sysapproval for reject, the condition is set like this. Should I change 'requested" to "rejected"?


find_real_file.png


Hi Wilson,



I think that is an UI action for Reject button. Don't change the condition there. This issue is in Workflow so open the workflow, check out and in the approval-user activity, we have two connections i.e, approved and rejected. Please double-click on rejected link and see if the below value is present in condtion or not.


find_real_file.png


find_real_file.png



Thanks and regards,


Swamy


Sneha Naidu
Kilo Expert

Every approval makes entries into the sysapproval_approver table. Look for the records of your item. Below is a sample record of the sysapproval_approver table.


find_real_file.png


To look for your record check for the RITM number in the Approving field (the label might be different for you, document_id is internal name of the field). Click on reject and check if the state changes form REQUESTED to REJECTED.