Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Assignment Rules condition for catalog variables in variable set

_hris A
Tera Expert

I have requirements to use assignment rules with a catalog variable that is in a variable set. 

 

I can make make the condition for the assignment rules work for the catalog variables, but when I attempt to use the variable set variables, it gets erased before save. 

 

What am I doing this incorrectly?

1 ACCEPTED SOLUTION

Hi @_hris A ,

 

it is possible to add variable of catalog as well as Single row variable sets variables in the condition

it's not possible to add the MVRS variables in the condition builder

ChaitanyaILCR_0-1750679357957.png

you can use script as for assignment

ChaitanyaILCR_1-1750679400125.png

something like this

var variableValue = current.request_item.variables.yourVarialbename
gs.warn('catalog task variable assignment '+variableValue )

if(variableValue  =='10'){
current.assignment_group = 'your assignment group sysid'

}

 

 

but again it's better set the assignment group in the flow or workflow whichever is used to create the task

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

6 REPLIES 6

Chaitanya ILCR
Mega Patron

Hi @_hris A ,

 

it's better and easy to set the assignment group of sc task on the Flow/workflow from where it's been created 

 

is there any specific reason that you are not setting the assignment group value on the flow/workflow?

 

but the condition field should work I have tried and it seems working.

ChaitanyaILCR_0-1750439398139.png

 

 

better to set the value in the flow/workflow whichever you are using to create the sctask

 

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

That has been my experience as well.  I originally set the assignment group in the flow and it worked nicely, but the new requirement is to ditch the old flow and use assignment rules.

 

Is there a way to trigger assignment rules off variables with variable sets?

Hi @_hris A ,

 

it is possible to add variable of catalog as well as Single row variable sets variables in the condition

it's not possible to add the MVRS variables in the condition builder

ChaitanyaILCR_0-1750679357957.png

you can use script as for assignment

ChaitanyaILCR_1-1750679400125.png

something like this

var variableValue = current.request_item.variables.yourVarialbename
gs.warn('catalog task variable assignment '+variableValue )

if(variableValue  =='10'){
current.assignment_group = 'your assignment group sysid'

}

 

 

but again it's better set the assignment group in the flow or workflow whichever is used to create the task

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Thanks! That worked swimmingly