Skip to main content
Best answer

How to retrieve RAW json only and save it as a file

  • August 16, 2022
  • 3 replies
  • 1997 views

Hi,

I’m struggeling a bit.  I want to built a quick en temporary fix to send some order data from Magento in a .json file to an employee.  It’s being triggered by a parser and a date sent in a email.  So far so good. 

But I can’t seem to just get the raw JSON data only.  Zapier automatically makes it pretty/parse it into items. I however just want the whole raw output (just like you would get it in Postman) and save that into a file.  Is this possible and how do I do this? 

So to be clear I would like to only see this

 

And thus only have one  “field” to pick when saving data to the file instead of what is happening now (See below, which is missing formatting also):

So in my use case I would only see one selection here: raw json, which contains all the data.

Is this possible? 

Best answer by Troy TessaloneBest answer by Troy Tessalone

Hi @WILHANZ 

If you can, use this Zap trigger: Webhook - Catch Raw Hook

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

  • Author
  • New
  • 2 replies
  • August 16, 2022

I already figured it out after some more searching. 

You need two zaps, as told here: 

 


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30902 replies
  • Answer
  • August 16, 2022

Hi @WILHANZ 

If you can, use this Zap trigger: Webhook - Catch Raw Hook

 


  • Author
  • New
  • 2 replies
  • August 18, 2022
Troy Tessalone wrote:

Hi @WILHANZ 

If you can, use this Zap trigger: Webhook - Catch Raw Hook

 

It’s not enough to just use this.  You two zaps as far as I can see: 

One zap that has a trigger to make a GET API call 

And second Zap that is the catch raw hook trigger which you then can use to do further actions such as saving to a text file.
 

Or am I wrong? 

But at this moment I’m already having trouble with the 2MB max limit unfortunually.