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?
How do I dehydrate a file that is returned from an API Post?
Best answer by robschmidt
Hi
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.