Hi,
If is possible to send the email with excel (which contain few sheets) attachment?
I need to send the email to several recipients.
Example:
each excel file should go to the person from the list:
I would appreciate any advice :)
Solved! Go to Solution.
Hi @Neffri
Just replace both by any file that you have access. These files doesnt really matter since the macro will do the job of replacing these parameters.
@Felipe_Ribeir0 thank you very much :)
Can you please explain me why we need to give 2 dummy files in the attachment?
Which part of the workflow is responsible to switch these two dummy attachments to what we want to have there? Is it XML_Attach formula?
THANK YOU!!!
Hi @Neffri , you are welcome 😊
Maybe it is a good idea for you to take a look at an introduction to macros, it is really useful to undestand how they work for a lot of different problems: https://community.alteryx.com/t5/Interactive-Lessons/tkb-p/interactive-lessons/label-name/Macros
This tool of the main workflow is a batch macro. On this case, this means basically that you can pass columns as parameters to it, and the macro will run 1x for each row that you pass. We are passing to it each email and attachments associated with it, and we have 3 rows, so it will run 3 times:
Inside of the macro, you can see this 'gear' tool. This is the input of the parameter Concat_XML_attach column of the image above (and the other one of the email column):
And finally, the update tool will pick the data from the 'gear' and update this value inside of the email tool, so for each run the email tool will know exactly to who send the email and which attachment is associated with it. The replaced value is the clicked value:
The tricky part of this macro is that for the email you can just replace the value (email1@company.com, email2@company.com...), but for the attachment, you need to replace the XML code. This is a little more advanced, but you can see that for attachments you have multiple values, and as you have a variable number of values (attachments), the trick of replacing values will not work here and you will need a more advanced trick.
But dont worry too much about the XML construction part right now, most macros will work just by replacing the value, like we did for the email column.
@Felipe_Ribeir0 YOU'RE MY HERO!