How to Generate an Excel File with Openpyxl and Email It Using Pipedream?

This topic was automatically generated from Slack. You can find the original thread here.

Hi - I’m pretty new to Pipedream but looking to use it as an alternative to Make where I need to do more clever an complex things.
One of these is to generate an Excel file and email it to someone. I need to use openpyxl to generate the file and I can save it to the /tmp/ folder, but then I don’t believe I can access this to attach it to the Gmail action.
What’s the suggested route here? I was really getting my hopes up for Pipedream :slightly_smiling_face:
Many thanks

Hey , thanks for raising this issue!

For your request, I’ve created a ticket and added it to Pipedream backlog, Pipedream component dev will take a look at it soon
[FEATURE] Gmail & Gmail Developer App - Improve Send Email action to allow attachments from tmp dir · Issue #12339 · PipedreamHQ/pipedream · GitHub. Kindly subscribe to the ticket to be noticed when the new feature is available.

For any feature that you need, you can simply raise a new issue on Pipedream open source repository here

Thanks Leo.

Hi by doing a few tests I think this is already supported, you just need to pass the local path to the attachment value prop something like:

or you can even create a Download File To /tmp step action like:

and then reference the value like:

let me know if that helps

I’ve tested for both Gmail and Gmail Developer App apps