Flow Designer Service Catalog get variables

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I'm getting ready to move from workflow for flow for Service Catalog. I noticed that when I do Get Catalog variables it lets me pick the request item from the trigger but not the item. That appears to need to be hard coded. Does this mean that I have to create a flow for every catalog item even we have some standard ones? Such as Manager Approval with 1 task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
In this case you can lookup action your table which stores the item and assignment group mapping.
you can lookup using the item from trigger and get assignment group.
Explore lookup records in flow designer
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
73 items and 1 workflow -> that's huge.
You can re-use flow on those items if everything is same.
If there is slight change such as assignment group on catalog task, you can handle that using before insert business rule on sc_task table and set the group.
OR
You can create & use flow variable and check which catalog item is associated with the current RITM and then store the group sysId in flow variable using "Set Flow Variables" flow logic, then use this flow variable to set the Assignment Group on Catalog task.
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
4 weeks ago
Ok let me ask a different way. I have a standard workflow I use for a lot of catalog items they can have different variables, different assignment groups. But what I don't understand is that all the video's I have looked say you have to start get variables but that does not allow dynamic item selection. So how can I use the same workflow again for all the items If I have to use get variables but cannot set the item based on the trigger record > item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
yes it doesn't allow dynamic item selection.
You can use a custom flow action, pass the RITM sysId and return an array of variables and it's values.
With this you need not use "Get Catalog Variables" action.
check this on how to get the variables for RITM via script using "GlobalServiceCatalogUtil"
Reusable custom flow action to get all the catalog/producer variables as concatenated string
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
3 weeks ago
Thank you for marking my response as helpful.
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