Hey everyone! I’m struggling to create a Zapier action that grabs raw bytes from my API and uses them in Zaps. I’ve been through the docs but can’t seem to get it working. Any tips would be really helpful!
I’ve been in a similar situation, and I can share what worked for me. Instead of using z.stashFile(), I found success with z.request() and z.stashFile() in separate steps.
This approach lets you handle the API response directly, giving you more control over error handling and file naming. Make sure to adjust the content type and filename as needed.
Also, don’t forget to set up the appropriate output fields in your Zapier action to make the file available for subsequent steps in your Zap. Hope this helps!
hey alice45, i’ve dealt with this before. try using z.request() first to get the api response, then use z.stashFile() with that response. something like:
I’ve encountered this issue before, and here’s what worked for me. Instead of using z.dehydrateFile(), try using z.request() followed by z.stashFile() directly in your perform function. Here’s a simplified example:
This approach gives you more control over the process and allows for better error handling. Make sure to adjust the content type and filename according to your specific use case, and verify that your Zapier action is correctly set up with the necessary output fields.