How to Access a Downloaded File in Python SDK?

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

working in the python sdk, if i run an action that downloads a file, how am i actually supposed to access that file?

Check out File Stash: Working With Files - Pipedream

hm i thought so, but my response exports just has exports={'$summary': 'Successfully downloaded the file, "document and stash_id=None

Did you pass stash_id in the actions.run payload?

ah i was trying to put it in the configurable props, although actually it doesn’t look like it’s an option to pass in to actions.run, and i dont see it in RequestOptions either.
i also thought it was supposed to generate an id if i didn’t pass one in

It should go in the top level payload for actions.run, and you should just pass an empty string if you don’t have an existing stash_id from a previous execution.

Ah yea I see it’s missing in RunActionOpts, will get that sorted asap.

tysm! so will i have to wait for you to get back and update my pipedream package at that point?

You can either wait for us to rev the package, which we’ll do soon (in the next day or 2), and you’ll be able to pass stash_id directly in the actions.run payload, or you can also work around it right now like this:

request_options = {
  "additional_query_parameters": {
    "stash_id": "...",
  },
}

The full reference for passing additional request opts is here:

awesome thank you!