The CreatorCon Call for Content is officially open! Get started here.

Flow designer help

Snowman15
Tera Expert

Hi all!

in flow designer, in a subflow I am setting up a catalog task sc_task action and in the assignment group field I want a script that automatically populates a group (sys_user_group) depending on one of the choices selected within the variable variable1 .

if users select choice1 then assignment group name (sys_user_group - name) should be group1 , if users selects  choice2 then assignment group name (sys_user_group - name) should be group2, if users selects choice 3 then assignment group name (sys_user_group - name) should be group3 etc. 

 

Can anyone help please? 

Thanks

2 REPLIES 2

Jack Littlewort
Giga Guru

Hi @Snowman15 ,

 

You should first use the Get Catalog Variables action (servicenow.com) to get the variables you require for the group. 

Then in your next action to set the assignment group your can reference the group variable from the catalog variable action.

Hi @Jack Littlewort,

 

I think  it's more complex than that, perhaps I didn't explain myself very well. SO I have a variable1 that has 3 choices, so I created a task and depending on what choice of that variable1 user selects on the form, I want to populate the catalog task assignment group field with the right group, eg userr select choice 2, I want group2 to be populated in the task