Requested item, when rejected, changes to 'not yet requested'

Ken Lombard
Giga Guru

I'm creating a subflow that runs a manager approval in flow designer.  I've created a test flow that triggers from a test form and then runs the subflow.  Everything works fine when I run it through and the manager approves the request.  The requested item record's approval field is updated to approved and the flows run properly.  When I have the manager reject the request, the approval record is correctly updated to rejected, but the approval field in the requested item is changed to 'not yet requested'.  This causes the subflow to continue waiting, as it is set to wait until the approval is either approved or rejected. Have done a quick scan of all business rules, scripts, and even OG workflows, but I don't see anything that would be causing this change.  We are currently working in Rome.

1 ACCEPTED SOLUTION

Ken Lombard
Giga Guru

I had a facepalm moment.  The 'fix' for anyone that finds themselves in my position, is that I was using 'approve' and not 'approve or reject' in my ask for approval step.  So, the system was only looking to approve and not looking to reject, which must be why it reset to 'not yet requested' when the rejection came in.  

View solution in original post

9 REPLIES 9

cp11
ServiceNow Employee
ServiceNow Employee

Are you able to share the screenshots of the flow with the steps expanded?

KenLombard_0-1664994410931.png

KenLombard_1-1664994438553.png

 

As I mentioned, the approval record gets set to rejected and that all flows fine, but the request item record shifts from requested to not yet requested right after the approval request is rejected.

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

The default value of the field is "not requested" so it basically sets it back to default value maybe you can try removing that value and check once how it behaves.

 

Please mark answer correct/helpful based on impact.