Setting check box variable value to false on RITM if the approval is rejected

jitendrag
Tera Expert

Hello Everyone,

 

I have a requirement that to send the approval request  based on the user selected checkbox. Once the approval is rejected then I need to set the check box value to false.

 

Can anyone please help how to achieve this.

 

Jitendra

1 ACCEPTED SOLUTION

@jitendrag 

then check the approval record status is Rejected or not using Lookup record and then update the variable value

you will require script for this using custom action OR take another route mentioned in below link

Setting, or updating variables in flow designer 

another link

Set Value of a Catalog Variable at Flow Designer 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

8 REPLIES 8

I have multiple checkboxes which will undergo approvals. So for each approval I need to update the variable if according to approval or rejected state

 

Please elaborate more...

 

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

I have ten checkboxes in my form. In that if user selected 5 checkboxes then this 5 checkboxes will have five different approval process. If the 1 checkbox  approval is rejected than I need to make the variable as false and ask for next approval

Each approval process is depend on different approver or different RITM's? 

If you are using flow and approval process is depend on approval approved by each approver then you can use this conditions in flow or separate sub-flow for each approver condition.

You can use logic like:
lookup to the approver table
if condition - approver is this and other unique condition for your unique RITM/ catalog item and approval is rejected
then update record and set checkbox variable value to "false"
else "true".

Or 
You can use separate script instead of add logic in flow for required table and add if else conditions for each approval process.

Thank You!!

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru