- 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 05:49 AM
Hi,
Try by replacing
rec.variables.requested_for.name.toString();
instead of
rec.variables.requested_for.getDisplayValue();
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 05:58 AM
Hi Sagar,
I appreciate your response. That one is functioning properly, but the script below has an issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 06:02 AM
Does summary_of_additional_users is reference list field? if yes then please try below,
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2022 06:06 AM
Does summary_of_additional_users is reference list field? if yes then please try below,
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP