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

I tried removing the default value and running it again.  It still sets it to Not yet requested. 

Hello,

 

To find if there is any script which is running do one thing start the script tracer and then preform the action of manager rejecting it. You will get the script causing the issue

Brad Bowman
Kilo Patron
Kilo Patron

Hi Ken,

Have you tried forcing this by adding a Set Values activity to the workflow to set the approval to rejected?

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.  

Matthew Henders
Tera Contributor

I also had this facepalm moment this morning, so this was helpful 😉