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

Mohamed Rahim1
Giga Contributor

Can you share the workflow so we can see how did you implement it on the flow?

also when did you get the variables and who fulfilled them is it during submission or during fulfillment?

Hi,

Please open the Task and see record xml using show XML option. See if there is any sys_id in assigned_to field.

As assigned to field is dependent on Assignment group, so it will ignore the value set in assigned to field if user is not member of assignment gorup.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

There is a sys_id in the XML.  And that user is a member of the assignment group.  Could it be a problem with the display_value? Obviously, we don't want to display the sys_id, we want to display the user's name.

 

find_real_file.png

The RITM is submitted and the Name of Assignee field then appears on the RITM and SCTASK form based on a trigger value.  Then Name of Assignee field is then populated (mandatory) and the RITM saved. Then the Catalog Task (step 4) is completed.  Then I'm getting the variable in step 5 and trying to create the next catalog task in step 7 and trying to set the value in the Name of Assignee field as the Assigned To on this catalog task.

find_real_file.png