- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 03:15 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 05:55 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 03:30 AM
if you are using workflow and User approval activity then on the path which takes to Rejection you can have run script and set the variable as this
current.variables.variableName = false;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 03:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 05:55 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2024 04:28 AM
Hi @jitendrag,
Have you tried it by using business rule? if not please try it by using below information:
Table: RITM
After update
Condition: approval changes to rejected
script logic:
Mark it Helpful and Accept Solution!! If this helps you to understand.
Thank you!!
Dnyaneshwaree Satpute
Tera Guru