Skip to main content
July 3, 2025
Solved

How to send a mail to a group from process model.

  • July 3, 2025
  • 5 replies
  • 0 views

 

(Please ignore the text in the to field it was just somethings i was trying which is unrelated to the doubt i have asked below)

So, as shown in the above image i am using a send email smart service. And in the to field, whenever i mention a specific user email its sending them the email without any issue, but when i choose a group its not. I don't get an email at all when i place a group in the to field. Can anyone help me what i'm supposed to do in such cases.

Thanks and regards.

Best answer by shubhama926776

toemailrecipient( getdistinctusers(topeople( cons!group )))


Create constant of your group and use above expression.

5 replies

shubhama926776
July 3, 2025

toemailrecipient( getdistinctusers(topeople( cons!group )))


Create constant of your group and use above expression.

July 3, 2025

Thankyou now iam recieving mails when i address a group.

stefanhelzle0001
July 3, 2025

Not receiving an email can have various reasons, but does not have to mean that the email was not sent. As per the documentation, groups are supported here.

Where to you get that group from? Did you try to use togroup() to make sure Appian recognizes it correctly?

Did you check for any error messages? Did you check the email node outputs? Especially the "Valid To email addresses"?

July 3, 2025

For now i didn't set any outputs in the smart service as i assume i don't need any for now.

Do i need to add any email output node ?

venkatrea696188
July 3, 2025
Do i need to add any email output node ?

Depends , but it's better to save the results of any node (not just this).It helps in debugging incase of anything went wrong