Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Sending multiple emails to multiple people grouped by specific column

Kketan24
7 - Meteor

Hi, Everyone!

 

I am trying to send one or multiple records (or one or multiple rows of data in table format) grouped by the "Name" column (1st column) to the email addresses in the last column. The subject line should also reflect the recipient's name.

 

For example, below details will be in the table:

 

NameAgeAddressRSVPDateEmail Address
John Smith421 Apple StYes1/1/2022john@apple.com
Mary Jane353 Banana StNo2/1/2022mary@banana.com
John Smith421 Apple StNo3/1/2022john@apple.com

 

Email will be sent to individuals with their data only. An example of outcome:

 

Sent to John Smith's email address (john@apple.com):

 

Subject Line: Please confirm the information - John Smith

 

Hello:

 

Please confirm your details below:

 

NameAgeAddressRSVPDate
John Smith421 Apple StYes1/1/2022
John Smith421 Apple StNo3/1/2022

 

Sent to Mary Jane's email address (mary@banana.com):

 

Subject Line: Please confirm the information - Mary Jane

 

Hello:

 

Please confirm your details below:

 

NameAgeAddressRSVPDate
Mary Jane353 Banana StNo2/1/2022

 

Any ideas on how to do this?

 

Thank you for your valuable input and guidance!!!

5 REPLIES 5
Yoshiro_Fujimori
15 - Aurora

@Kketan24 ,

 

Here is a sample workflow.

 

Workflow

Yoshiro_Fujimori_1-1683876080303.png

 

Table tool configuration

Yoshiro_Fujimori_0-1683876771637.png

 

Report Text tool configuration

You can embed field values in the message text.

Yoshiro_Fujimori_2-1683876861706.png

 

Layout tool configuration

You can arrange the layout of report components.

Yoshiro_Fujimori_3-1683876919878.png

 

Find Replace tool configuration

To get the email address.

Yoshiro_Fujimori_4-1683876986949.png

 

 

Email body

Yoshiro_Fujimori_2-1683876097183.png

 

I hope this can be of some help.

Kketan24
7 - Meteor

Thank you, Yoshiro_Fujimori! It worked partially. Still, looking forward to a subject-line solution.

 

The subject line for John must be: Please confirm the information - John Smith 1/1/2022 - Yes, 3/1/2022 - No

 

The subject line for John must be: Please confirm the information- Mary Jane 2/1/2022 - No

Yoshiro_Fujimori
15 - Aurora

You can add and edit "subject" field with Formula tool and call it in Email tool as below.

Yoshiro_Fujimori_0-1683883106974.png

Formula tool

Subject = "Please confirm the information - " + [Name]

 

Email tool

Yoshiro_Fujimori_1-1683883259523.png

 

As your originally described to add only the name (not date and yes/no) to the subject line, I followed as such.

If you want to add it, you may tweak the formula tool by yourself.

 

Good luck.

Kketan24
7 - Meteor

Thank you. I tried, but the formula tools don't allow the Date and RSVP fields.

Yoshiro_Fujimori
15 - Aurora

Could you attach the workflow, instead of screenshot?

From the screenshot, it seems you added something but it resulted in "unmatched quote".

You may want to check if the quote characters are properly matching.

Labels