- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 07:37 AM - edited 05-20-2024 07:38 AM
Hi Experts,
I have created a catalog item in which i have used multirow variable set and it has a variable - "Requested for",
after submitting the form a RITM is being created, whenever this RITM goes to closed complete state a notification should be sent to all the users who are in the requested for field of my multi row variable set.
I am not finding anything related to the variable set in my flow designer Get catalog variables, Can anyone suggest me what i should be doing here for sending notification.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 08:12 AM
Hi @Sai Gopal ,
You can use below script to parse MRVS & get the emails
I started answering community questions recently. If my answer helped you in any way, please mark it as helpful or correct. It would be a great boost.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 07:20 PM
@Sai Gopal Yes you can do that.
In the email script write the below code
var recipientSysIds = event.param1.split(',');
var recipientNames = [];
for (var i = 0; i < recipientSysIds.length; i++) {
var grUser = new GlideRecord('sys_user');
grUser.addQuery('sys_id', recipientSysIds[i]);
grUser.query();
if (grUser.next()) {
recipientNames.push(grUser.getValue('name'));
}
template.print("Hi "+recipientNames);
If my answer helped you in any way, please mark it as helpful or correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2024 09:24 PM
Hi @Community Alums
Few changes to be made in the script (line 1 and line 6)i have corrected those and the functionality is working fine now.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 10:27 AM
Hi @Sai Gopal / @Community Alums , I have same requirement and followed the code. Notification is sent to MRVS users but I want to include mrvs username inside email body. For that I have used the code mentioned in this post in emailscript which did not work. Please let me know how to achieve this.