Skip to main content
Best answer

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

  • March 1, 2021
  • 2 replies
  • 2999 views

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?

Best answer by robschmidt

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

 

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

robschmidt
Forum|alt.badge.img+9
  • Zapier Solution Partner
  • Answer
  • March 2, 2021

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

 


nicksimard
Forum|alt.badge.img+11
  • Zapier Staff
  • May 4, 2021

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!