- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 03:37 PM
Hi team,
On submit, I want to modify the script to add 'Approvers' when automatically creating a Catalog Task. I currently have this code:
Would any of you know how to modify the script to add "Approvers"?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 03:52 PM
Hi @schoi ,
The approvals applied on RITM and configured in workflow/or/flow.
If you are trying to add more approval, add them at RITM level.
-Thanks,
AshishKm
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 04:45 PM
Thank you so much for your response, @AshishKM !
Does this mean that it is not recommended to add "Approvers" to a Catalog Task that is not associated with an RITM? If that's the case, could you clarify why the option to add "Approvers" exists for these tasks?
Currently, we have a flow where Catalog Tasks are created without being linked to an RITM. I am working on writing a script to add "Approvers", but I've been running into some challenges.
I appreciate your insight!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2024 05:49 PM - edited 11-21-2024 08:34 PM
@schoi , are you not using catalog item from sc_cat_item table, how come SCTASK are generated without REQ=>RITM.
seems like , flow is creating direct record in sc_task ... so this will consider as record producer on catalog task table directly. if that is the case , you can add approval in flow.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 07:46 AM
Hi @AshishKM, got it! Since sc_task could have approvers, how could I add approvers by modifying a script? As mentioned above, this script is not working:
' var app = new GlideRecord('sysapproval_approver');