Approval based on condition in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2025 06:35 AM
I have a field called server which is of list collector type referencing to server table. Now if the server selected in catalog item has a change control group value not empty then approval should go to change control group. If server selected has change control group value empty then approval should got to owned by user of the server.
If suppose 2 server are selected and 1 server has change control group value and other server has owned by value then approval should go to both group and user
How to implement this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2025 06:41 AM
so you can use flow variable and handle the logic and get the final list of group or users for approvals
then use scripted approvals logic
check this link
Scripted Approvals in Flow Designer with Flow Variables
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
‎06-10-2025 06:52 AM
I have to use workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:36 AM
then logic will be the same, have a workflow run script and push into an array the group and user sysIds
Then use this array and set in workflow scratchpad variable
Then use this scratchpad variable in advanced script in "Approval Activity"
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
‎06-13-2025 05:40 AM
I used the below script but it is not creating approval