Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Sending Emails with Attachments Having ONLY user specific content (grouped by ID)

theinsideguy
7 - Meteor

Hello,

I have an input table that looks something like this:

ID

Name

Message

Email

1

Name A

This is a message for Name A

Aemail@blah.com

2

Name B

This is a message for Name B

Bemail@blah.com

1

Name A

This is a second message for Name A

Aemail@blah.com

3

Name C

This is a message for Name C

Cemail@blah.com

3

Name C

This is a second message for Name C

Cemail@blah.com

2

Name B

This is a second message for Name B

Bemail@blah.com

 

I’m trying to send an email with an xlsx email attachment to EACH email address that only displays their own respective data. For example, Name A gets an excel document with the following table:

ID

Name

Message

Email

1

Name A

This is a message for Name A

Aemail@blah.com

1

Name A

This is a second message for Name A

Aemail@blah.com

 

Of course, there can be thousands of rows that change all the time, so I can't manually implement this. I saw the solution that @DataNath gave here: https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Grouping-to-be-sent-in-email-q...

However, I don’t think this works with attachments because one would have to first write to a separate excel file FIRST and then send that attachment to an end user, and then repeat for each end user. Has anyone done this before? I’m a little over my head here.

3 REPLIES 3
Yoshiro_Fujimori
15 - Aurora

@theinsideguy ,

How about using Block Until Done tool?

 

Workflow

Yoshiro_Fujimori_0-1681696406614.png

Step 1: Prepre file path with Formula tool for each user

FileName = [Name] + ".xlsx|||Sheet1"

 

Step 2: Write output .xlsx files with Output Data tool

Yoshiro_Fujimori_2-1681696637715.png

 

Step 3: Attach the files with Email tool

Yoshiro_Fujimori_1-1681696582247.png

 

I hope this works with your case. Good luck.

theinsideguy
7 - Meteor

Hi @Yoshiro_Fujimori , thanks for the thoughtful response. I'm not in front of my computer right now, but wanted to ask—won't that workflow send one single email for each row? So, in my example, Name A would get two emails with two separate XLSx files? If so, I'm trying to only have one email sent with all pertinent rows in the XLSx file. 

AdamR_AYX
Alteryx Alumni (Retired)

This sounds like a job for a batch macro using the grouping functionality

 

AdamR_0-1681743149154.png

 

 

Excuse the errors. I don't have my email tool settings to hand

 

AdamR_2-1681743291339.png

 

Each batch will run with the data for that single user.

 

Adam Riley
https://www.linkedin.com/in/adriley/
Labels