- 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-20-2024 08:07 AM
Hi @Sai Gopal ,
You can use the Get catalog variable and get the values of MRVS and then use for each logic to send notification to the users
- 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 11:20 AM
Hi @Community Alums ,
I have created a BR and triggering a notification, it is being sent to all the individuals but in the email body after "Hi" i am trying to give the recipient's name, is it possible give the names?
Thank you
- 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.