Save Output Data as Dynamic File Name and Send as Email Attachment
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi all,
How do I save an Output Data with a dynamic file name (FilenameYYYYMMDD.xls), then send it as an attachment to an email?
Solved! Go to Solution.
- Labels:
- Best Practices
- Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Step1: Create the column with full path + filename + sheetname like below
Step2: use a block until done this makes sure file is written first and then mail is sent.
Step3: configure output tool to write file based on column passed as path
Step4: pass the column as path for file to be attached in email tool
Hope this helps : )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Checking this out. Seems pretty simple. Thank you, @atcodedog05!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Happy to help : ) @RonGatmaitan
If my response helps please don't forget to mark it as solution.
Cheers and have a nice day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @atcodedog05,
I most certainly will. 🙂
I have 2 more questions, please.
1. Is there a way to hide the FileNameAs sheet from being written to the Excel file? I just realized, since it's a field in the table, it is being written to the Excel file, too.
2. Why is it sending as many records as emails? Did I miss anything out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
1. Is there a way to hide the FileNameAs sheet from being written to the Excel file? I just realized, since it's a field in the table, it is being written to the Excel file, too.
Use select tool and remove
2. Why is it sending as many records as emails? Did I miss anything out?
Use summarize tool and convert into a single row. 1 mail is sent per row.
Hope this helps : )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Summarize tool works! 🙂
Problem with the Select tool is, once I remove the field, Output can't find it and generates an error. This is the last one. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am able to remove the others, except for the FileNamePlusSheet as the Output needs it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can exclude filename+sheetname by unchecking this option in output tool.
Workflow:
Hope this helps : )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Done! I just unchecked the Keep Field in Output tag. Thank you very much! Marking your answer as the solution now. 🙂
