Catalog Task need to be sent to the group based on option selected in variables
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 11:28 AM
HI Community,
I have a requirement, catalog task need to be assigned to assignment group based on selection of option from the variable.
In catalog item there is variable called "license is requested for" reference field referred to alm_hardware table...In the hardware table there is field called inventory location (reference field referred to location table) and in the location table there is field called HUB (single line).....group name is mentioned in hub field.
screenshot 1
screenshot 2
for example if the option aplxxxxx(screenshot 1) is selected in the variable "license is requested for" then the task needs to be assigned to RCS-HUB-CAN.
similarly when different option is selected in the variable then the task needs to be assigned to the group name mentioned in the hub field in location of the hardware table.
In variable, selecting option from hardware table>inventory location field present in hardware>hub field present in location
How can we achieve this.
Thanks in advance!
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 11:53 AM
In your workflow or flow designer, you should be able to dot walk that variable and get the assignment value and assign to the task.
For ex, if variable name is license, you can do something like task.assignment_group = current.variables.<licesne>.<inventory_location>.<hub>;
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 04:22 AM
HI @SanjivMeher ,
Thanks for the reply.
I tried dot walking method in catalog task

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 10:24 AM
In the location table, the HUB field is a string field. You need to convert it to a reference field to the group table.
Then the above script will work.
Please mark this response as correct or helpful if it assisted you with your question.