Approval is not recognizing Rejected as Rejected

MelisaB
Tera Contributor

I have Ask for Approval action that is not recognizing Rejected as Rejected. If I reject approval, it is going through the workflow as it is approved during testing.

MelisaB_0-1711731181547.png

MelisaB_1-1711731210355.png

When I reject, it doesn't recognize it.

MelisaB_3-1711731753158.png

 

MelisaB_2-1711731715952.png

 

 

17 REPLIES 17

yad_achyut
Giga Guru

Hi @MelisaB :
If your approval rejection is not been working then you can check for both the conditions  for approved and for rejected in if statements. It will work for you. like the way i have given in the following example.Screenshot 2024-03-30 at 12.27.35 AM.png

James Chun
Kilo Patron

Hey @MelisaB,

 

From the Flow execution screenshot, it looks like your 'Condition' is not configured correctly.

i.e. it should be 'rejected=rejected' not 'cancelled=rejected'.

JamesChun_0-1711748504695.png

 

Instead, it should be something like (from my PDI)

JamesChun_1-1711748515484.png

 

Can you check your condition again?

If you are still struggling, can you share a screenshot of the 'Ask for Approval' Flow action and expand the 'Condition' of the If Flow Action as well?

 

Cheers

 

Hi James,

 

Thank you for your response. I've noticed it is showing cancelled=rejected, but I have not used cancelled in condition. Please refer to below screenshot for the "Ask for Approval" configuration.

MelisaB_0-1711974553705.png

 

Hi @MelisaB,

 

Thanks for that, I can see that you are creating the approval on the Request [sc_request] table. Is there a reason why you are creating it on the Request table and not on the Requested Item [sc_req_item] table?

I am not certain if this is related to the issue, but there could be an OOB Workflow (Service Catalog Request) running on the Request table that is 'conflicting' with the Flow.

 

Cheers