cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow - sending emails to multiple people

Nieves_Navarro
Participant
0 Kudos

Hi there,

I have a workflow for sending mails to a list of people. This list is on a hana db, with the email and name of every person i got to email to. It will be the same email for all of them, but i just don't know the way of sending an email to each person with is name on it without having the same number of task (on the workflow) that the amount of people.

Is there anyway of making just one task in the workflow by making something like a loop on it?

kaus19d
Active Contributor
0 Kudos

Hi Nieves Navarro Ruiz,

Would like to know what sort of mail, is it a fixed mail text that will go to the users everytime, or the mail content will be changed time to time depending upon any specific task scenario

Thanks,

Kaushik

Nieves_Navarro
Participant
0 Kudos

Hi Kaushik,

The mail text it's going to change, it's an app for sending news to a list of web subscriptors, so the mail it's going to be the same for all, but i need to be able of sending different news.

Thanks,

Nieves

Accepted Solutions (1)

Accepted Solutions (1)

qmacro
Developer Advocate
Developer Advocate

Hi - you can do this using an Exclusive Gateway and a very small bit of logic in a couple of Script Tasks. I set an example up for you to see, and recorded a quick demo, to give you a general idea of how it could be done.

The key here is a condition in the "Yes" branch of the Exclusive Gateway (which I forgot to show in the recording), which is set to this condition:

${context.nextRecipient != ""}

Hope that helps!

Recording here: https://youtu.be/18s46dkUm-Y

Nieves_Navarro
Participant

Wow! that looks really great.

Thank you very much, it's a very complete and helpful answer.

Answers (0)