Hello all,
May I kindly ask you to help me?
I have a case where I need to send emails to different persons. I have the excel file where the sheets are split according to name, for example, I have sheets with the names Alan Bush and Laura Smith and I want to do a conditional sending so if the particular sheet contains this name, send the whole sheet to this person. I want to avoid sending emails to all people who are in the excel file. I need to split the sheets somehow and send them to persons accordingly.
I really apraciate your help.
If you would need more details, please let me know.
Thank you very much
Hi @Kate13122
An interesting challenge!
An initial question; Do the sheets need to be all in one Excel File, i.e could you not output each sheet to it's own file, then fire off emails per file to the right receipient?
Hey @Kate13122,
Here's one way of achieving this. I used the Input Data Tool to retrieve the list of sheet names before using the Dynamic Input Tool to read into all of these sheets, appending the sheet names in a separate field.
You could have a mapping table of name to email address so that you can lookup the email addresses of each name. What's left is to create separate tables using the Table Tool, grouped by email address, before configuring the Email Tool to use the [Email] field as the "To:" value.
Sample workflow is attached, hope this helps! 🙂
Email Tool configuration:
Thank you very much for your solution. It works :)
I would like to kindly ask you if you could advise how to send this sheet in excel as an attachment?
Once again thank you
K.
Hi @Kate13122,
You would be looking at the Block Until Done Tool to output the respective excel reports first before attaching them to each email.
I used the formula tool to create an [Attachment Name] field. In the email tool, set the Attachments as "File name from field value" = [Attachment Name].
I have attached the sample workflow below - let me know if this is what you're looking for. 😎
Emails with the corresponding attachments - of course, I am using my own email for all 4 names here.