Unable to set Catalog Task Assigned To field using RITM variable value

Cobbsalad
Kilo Contributor

I am attempting to create my first Flow Designer flow related to Service Catalog. I have a reference variable on the RITM that has a qualifier to show only users who are members of a particular group:

 

find_real_file.png

The customer selects a user from this field on the RITM.  I am using Get Catalog Variables to retrieve the variable field name. When testing, I can see that a sys_id is retrieved at this step:

find_real_file.png

I then want to Create a Catalog Task and set the Assigned To on the catalog task to the same user as the above. It appears to be setting the value, based on the screenshot below, but when I look at the RITM/SCTASK form, there's no value in the Assigned To field:

find_real_file.png

find_real_file.png

Can anyone tell me what I'm doing wrong and how to fix?

 

1 ACCEPTED SOLUTION

Ok that one works!!

 

Ok, so that's the issue!!

the Name variable is reference to group members table while it should be to sys_user table with reference qualifier the group name they are member of 

 the problem with your setup is that you are filling in data from a table and populate it to a field that reference another table and then when you select the members from the new table you are not getting the expected output (Sys_ID) of the user but you are getting the Sys_ID from his membership of a group

to fix this issue, change the name to be reference to active users in the Sys_user table

View solution in original post

19 REPLIES 19

Got it. Make Display Value of Location on User Table as False and try again . It will work out for you.

Just Keep Name as Display Value =True and you should be good here.

This is explained clearly in the below HI Article that you should keep just one Display Value as True and not on two fields to avoid these issues.\

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0693859

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Ok, so this is happening because you the variable is returning not the user but probably the Sys ID for the user record.

So now show me the variable configuration for this variable hss_archtect_name

Here is the config for the variable..thanks for your helpfind_real_file.png

Ok that one works!!

 

Ok, so that's the issue!!

the Name variable is reference to group members table while it should be to sys_user table with reference qualifier the group name they are member of 

 the problem with your setup is that you are filling in data from a table and populate it to a field that reference another table and then when you select the members from the new table you are not getting the expected output (Sys_ID) of the user but you are getting the Sys_ID from his membership of a group

to fix this issue, change the name to be reference to active users in the Sys_user table

Thank you!! I have updated the variable with an Advanced reference qualifier and on the form I'm being presented with the group members of the specified group and my Catalog Task is now being assigned to the person selected.

find_real_file.png

It is now working beautifully!!!