Script to trigger workflow approval based on variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 08:48 AM
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 09:47 AM
Hi Tyler,
If you have 2 static approvers for Y and Z folder. Lets say Bob Jones for Y folder and Tommy Hill for Z.
you can use 2 parallel IF activities and in advance condition you can check the value of variable 'What drive do they need access to?' and if it is Y than move user approval to Bob Jones. if it is Z than move user approval to Tommy Hill.
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 09:52 AM
That's where the complexity is. Each choice from both questions requires a different user to approve.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 09:58 AM
Oh you means 25+15 = 40 approvers.
I that case better to react custom Table with 3 columns (Drive access, Folder, Approval).
Than you can use Run Script activity and you GlideRecord to query above created table and create Approval record accordingly.