
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 02:19 PM
Hi all,
I am looking to create an 'Offboarding' type of Catalog Item, that when a requests comes through, it creates 5 different RITM's assigning to different assignment groups for each. With in those RITM's there will be multiple SCTASKs. Is this possible?
1 RITM to the Service Desk, in this RITM, there should be 8 SCTASKs assigned to the Service Desk that has individual tasks to perform to ensure a person is offboarded properly.
2 RITM sent to the Applications Team, in this RITM there will be approx 12 SCTASKs that are created to remove access to certain applications.
and so on...
Does anyone have an idea how I can achieve this?
Thanks very much!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2020 02:54 PM
If you haven't done so already, there's an option on the order guide to cascade variables, so you'll want to be sure that is checked, then create variables with the same names on each of the catalog items so that the data you capture from the requestor appears on each RITM. On the workflow of each catalog item you can add a Run Script activity at the beginning. The workflow is running on the sc_req_item (RITM) table, so to set the short description you would use something like
current.short_description = 'Termination - ' + current.variables.v_user.name;
Where v_user is the Name of the variable. On the Create Task activities, you can leave the Short description field blank, then check the Advanced box and in the Advanced Script put something like
task.short_description = 'Termination - ' + current.variables.v_user.name + ' show them the door.';
Then be sure to select the variables at the bottom that you want to appear on this task.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 02:47 PM
Hello Cory
I think Flow Designer will help you to achieve your goal.
You can Trigger the flow from Service Catalog associated to the Item.
Then you can create a "logic" like this: "do the following until"
In the loop you can create the RITM's with this Action "Create Record"
And you can create Catalog Task in the RITM with this "Create Catalog Task on Request Item"
I hope this help you.
Please, mark my answer correct, useful or bookmark if I helped you
Thanks
Ariel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2020 03:33 PM
Looks awesome! We are currently running Madrid, so this isn't an option right now unfortunately... thanks for the response!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2020 04:12 AM
Ok Cory, understood.
We upgrade from London to Orlando a month ago and is a new "world" for us!
Thanks,
Ariel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2020 04:15 AM
But you have Flow Designer in Madrid, take a look to this doc: https://docs.servicenow.com/bundle/madrid-servicenow-platform/page/administer/flow-designer/concept/...
Maybe don't have all the new Orlando features, did you explored that?
Ariel