- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 01:24 PM - edited 02-09-2024 01:36 PM
Hi @HenryD,
Sure, technically possible with adding Run Script object within the workflow, the script can be coded with required logic to fetch the roles from selected group and create the no. of catalog task, however the next challenge will start from this point because those tasks independent and no linkage with running workflow context ( however Task will be associated with RITM) but once task is closed (or cancelled), workflow will not get any trigger point for next action. [ this can be manage via additional BR on sc_task for specific catalog item, this will add more complexity for that catalog item ]
The same is applied to approvals [ which is on RITMs ], in ideal situation, we applied the Approval User or Approval Group before the Catalog Task object and there is no task object here as tasks are created via Run Script.
and how the roles are mapped with some approval users or groups , role are independent items no one owns it, that's the reason ServiceNow has group feature and group has manger, so manager's approval should be enough for any request approval ( or additional hierarchical approval or specific user/team approval ).
Let's see, if you have role and role manager mapping, then you can manage to add approval at RITM level and once all approvals are approved then you can create single task ( or more ). Separate the approval part from task.
My Suggestion: Let's see role base approval are mandatory at RITM level and we dont need the N number of Catalog Task.
1) Create a new group for this catalog item. ( like : Manager Of Roles )
2) In workflow, read the no. of role from selected group and add those mapped approver in this new group.
3) Apply the Approval Group object in workflow (every one has to approve) [ this will work for N no of approvers]
4) Add the catalog task(s) after the approval object, and add required logic ( as needed ) till End object.
5) Remove the role managers from this group before the End object in workflow. [ Risk : When more requests opens at the same time, this group will have more roleManagers ]
Let me know if you have any query.
Note: Please excuse if any typo.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution