Catalog Task need to be sent to the group based on option selected in variables

suuriya
Tera Contributor

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

suuriya_0-1717438431526.png

screenshot 2

suuriya_2-1717438686740.png

 

 

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!

 

3 REPLIES 3

SanjivMeher
Kilo Patron
Kilo Patron

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.

HI @SanjivMeher ,

 

Thanks for the reply.

I tried dot walking method in catalog task 

task.assignment_group = current.variables.please_select_kiosk_shared_workstation_the_license_is_being_requested_for.u_inventory_location.u_hub;
but it is showing as the empty value

suuriya_0-1717500049796.png

 

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.