- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 05:43 AM
Hello,
I'm trying to update the RITM description using the flow designer, but I'm getting the user's SYS ID rather than their name. This user name is a reference variable in a variable set, therefore I attempted using script rather than a data picker, but I was unable to use getDisplayValue since an error was displayed. Could someone please tell me what went wrong with the script below the bold line?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 07:09 AM
Hi,
Can you try below script it might work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 06:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 06:31 AM
Your script looks good, what values you are getting in response variable with that script, you must be getting sys_id of the user, isn't it?
Regards,
Abhijit
ServiceNow MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 06:02 AM
Can you share more details about "summary_of_additional_users" what kind of field it is?
Is it a list collector? then dot walk will not work, you will have to glide each record to find relevant values.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 06:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 06:14 AM
What I could deduce here, when you are parsing the MRVS data, it stores the data as object but the behavior would be same as list collector, as in how you can't dot-walk from each individual list elements to get the dot walked fields, that would be the same case here.
If at you want to fetch other details from usser_name reference field, you will have to glide the table then pass user_name data to get display value or other relevant fields.
getDisplayValue or other functions won't work in this case.
Aman Kumar