- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 01:03 PM
Hi all,
I have a catalog item with a list collector variable. The list collector is a reference field to the sys_user_group table. My issue I am trying to get the responses on an email notification but it's only returning the sys_id of the groups. How I can get the Display Value or the actual name of the group in the email notification? I am using the flow designer to send the notification.
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 08:32 PM
Hi
Thank both for your responses, but I was unable to find a solution using flow designer so I end it up using the notification outside flow designer. I create a notification and I called the variable for the list collector.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:31 PM
Hi,
I am just dragging the variable from step 2 into the notification body.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:34 PM
Ah okay so there you can fid any option to script the variable assignment beside the drag pill you need to put the code over thiere like below
var lst = fd_data.trigger.current.variables.your_list_collector_variable_name;
var splt = lst.split(',');
var arr=[];
for(var i=0; i<splt.length;i++)
{
var usr = new GlideRecord('sys_user_group');
usr.addQuery('sys_id',splt[i]);
usr.query();
if(usr.next())
{
return arr.push(usr.name.toString());
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:43 PM
Hi,
And this goes in the body of the email?