Issue with 'Send Email' through Flow Designer

shreyanshs07
Tera Contributor

So, the issue which is faced is that when I send email through flow designer to the members of Assignment Group (custom created), the mail is only going to some users of the assignment group and not to all the members of that group.

<> Below is the Custom Catalog which I created.

shreyanshs07_0-1727425287468.png

 

<>The Flow which is being used to send email to the Assignment Group Members.

shreyanshs07_1-1727425499941.png

 

<> The Email Log which shows Recipients of the users who received the mail (ignore the last mail in Recipients as that is the manager mail of the user which is taken from the catalog requests).

shreyanshs07_2-1727425642353.png

 

2 ACCEPTED SOLUTIONS

Juhi Poddar
Kilo Patron

Hello @shreyanshs07 , 

You can achieve this requirement by creating a notification on sc_req_item table with following parameters:

1) When to send: Triggered

2) Who will receive: Groups-> Custom Group name

3) What it will contain: will accept subject and body of mail.

 

Notification_when to send.png

Notification_who will receive.png

Once the notification is created, instead of sending email you can Send Notification.

I am also attaching screenshots for your reference.

 

Flow designer_Issue with 'Send Email' through Flow Designer.png

A single email will include all the members of that group.

 

email.png

If you find this as an accepted solution please mark it as helpful, as it will help others to identify the appropriate solution for them.

 

Thanks & Regards

Juhi Poddar

View solution in original post

Hello @shreyanshs07 

 

Please refer to the following post from community:

Notification (unknown) excluded recipients because user has no usable devices 

 

Please mark this response as correct or helpful if it assisted you with your question.

 

Thank You

Juhi Poddar

 

 

 

 

View solution in original post

17 REPLIES 17

Barath P
Tera Guru

You can use the 'Look Up Record' action on the sys_user_grmember table and set the condition to 'Group is RITM's Assignment group.' After that, add a 'For Each' loop to iterate over the retrieved records. Inside the loop, use the 'Send Email' action, and dot-walk to the user's email address to send the message. This should achieve the desired outcome.

Screenshot 2024-09-27 174309.png

"If you found my answer helpful, please give it a like and mark it as the accepted solution. It helps others find the solution more easily and supports the community!"

 

Thanks & Regards,

Barath.P

hi @Barath P ,

The above solution which you provided works, but my main motive was to send a single email where the recipients are the members of the assignment group as I have shown in 3rd Screenshot in the Question. Is there any way to achieve that?

Animesh Das2
Mega Sage

Hi @shreyanshs07 ,

I hope the specific user profiles do not have any issues.

Can you try an alternate method, which is also easy to maintain from flow perspective?

 

1. Create an email notification from 'System notification' module with all the relevant details along with the 'Users/groups in fields' as 'Assignment group' and 'Send when' as triggered.

2. Now, in your Flow, use 'Send notification' action after your 'Update requested item record' action and fill the below fields(shown in SS) of the new action. The 'Record' will be picked from output of 'Update requested item record' action as you were already doing in case of 'Send email' action.

 

If it resolves the issue, this method will also help to do nothing in the Flow later if you want to update anything in the notification as an administrator only.

AnimeshDas2_0-1727584629100.png

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

 

I did but still one of the user (Charlie Whitherspoon) is not present in the email recipients.