Best answer

How do I dehydrate a file that is returned from an API Post?

  • 1 March 2021
  • 2 replies
  • 2029 views

Userlevel 1

I post a form containing some information to an api which then returns a file that Zapier shows in hyrdrated format. I need to dehyrdate the file and read its contents. I can use either js or python for this. Does anybody have an example to follow or advice?

icon

Best answer by robschmidt 2 March 2021, 03:33

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +9

Hi @wolnickd,

Zapier can only read CSV files natively and using Python/Javascript step, I think, you can read TXT file as well. As of now, Zapier only supports a handful of Python libraries, so it is unlikely that you can parse other file formats there.

However, you can read file content using Docparser integration or any other 3rd party parsing tool, here’s the Docparser integration page: https://zapier.com/apps/docparser/integrations

Just bringing to your attention that, you can map the hydrated file to any field that accepts a file, no need to dehydrate that yourself.

Here’s a documentation of Zapier hydration and dehydration process: https://platform.zapier.com/cli_tutorials/hydration

 

Userlevel 7
Badge +11

Hi @wolnickd!

Since this was a little while ago, I wanted to check in to see if you’d managed to solve this (maybe with help from Rob’s response) or whether you still needed help here. Please let us know!