How to get File Contents with a GET Request to Dehydrate a File
Credits
Troy Tessalone is a Certified Zapier Expert at Automation Ace.
ALTERNATIVE
You can use this Zap action: Files by Zapier - Text from File
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/32897764-fc45-4d46-8c79-c0c7bfd354e6.png)
What
You can use a Webhook - Custom Request (GET) method request to dehydrate a file in a Zap to get the file contents.
About
Dehydration, and its counterpart Hydration, is a tool that can lazily load data that might be otherwise expensive to retrieve aggressively.
Related Topic: Hydration
Action
Zap Action: Webhooks - GET
You only need to set the URL value as shown below in the examples.
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/8d474763-1e61-42ed-bcb9-87bc3e4a4aeb.png)
Examples
Example 1
Using an file attachment from Gmail.
Use this variable: Attachment (Exists but not shown)
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/1c57d32e-c245-4889-ae9a-0ae5bf77f57a.png)
Example 2
Using an file from GDrive.
Use this variable: File (Exists but not shown)
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/adc43c04-1a97-47dc-b528-1e4e76d60118.png)
Example 3
Using a GDoc file from GDrive.
Use this variable: Export Links Text Plain
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/80685898-903c-470c-8414-d7f0fc595be9.png)
OUTPUT
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/b608f526-8c02-44e0-b06a-0fe2bc1e9c18.png)