I have a workflow that outputs a excel file and I'm trying to use the email tool to send that attachment to an recipient.
I have a field in the file that has a formula for the attachment location.
I want to save the file to a share drive and then I want to email that file.
It keeps sending an email multiple times based on the numbers of rows in the file.
I have read prior discussions on this but can't seem to figure out the correct process.
Here is the last part of my workflow. The email tool is configured to send the attachment based on the attachment field which is the formula for the location of the attachment.
Just trying to figure out how to get it to send only one email.
Thanks,
Hi @cowannbell
Please use a summarize tool groupby on location. This way it creates a single row and only one mail will be sent.
Workflow:
Hope this helps : )
I added the summarize tool and grouped on the file location field but it didn't send any email.
I changed some info for privacy reason but other than that, this is what it looks like.
Hi @cowannbell
Are you getting single row with filename from summarize tool to email tool.
Are you getting any error?
Yes, just the one row with just the filename field. No error.
It says it sent 1 email sent. It finally came through. Now one last question. The file attachment does not have the name of the file it has another name like ATT18179. How can I fix that?
Hi @cowannbell
You are passing required file path + file name as file location parameter to email tool right?
Are you getting a different name than passed?