Can a Python Step Return Both a Dictionary and a PDF File for Later Use in an API?

Thanks, will check ASAP!

Found a workaround: using the webhook file url (from trigger) works fine for some reason

I’ve got the parsed info added as a record with the podf in the attachment field

So no hurry for me, just weird but probably related to the airtable api

is this Attachment supposed to be the original PDF or the modified one?

I think if you had passed /tmp{{steps.trigger.event.file.filename}} it would’ve worked too

Nvm it’s the same value as you inputted

If you could share your workflow URL I can look at a specific execution with the data

Hi, yes I believe your suggestion tmp/{{…}} is the same as what I tried before.
Is this not the right share link: Sign Up - Pipedream

Anyway it works for me now using the workaround, did I need to download the file to tmp at all I wonder? Or could I just as well have used the webhook file url in my python parsing steps…

Good question, I see there are Attachment and Attachment_URL fields

It looks like for your Python steps you do have to download to /tmp

Since it opens the file

with pdfplumber.open(pdf_path) as pdf