Obtain a JSON through webhook and make an HTTP request with it

I want to send a JSON from a webhook in Glide to Make and make a HTTP request with it. The JSON is different every time.

I currently have a webhook in Glide where I send a JSON, it looks like this:

image

Following the steps in this response, I set the Webhook “JSON Pass-through” to YES:

However, the output of the webhook call has the name of the variable I put (right now is called JSON):
image

and to be able to do my HTTTP request, it shouldn’t have that name there.

I tried not naming the variable, but, reasonably, I get an empty response.
image

The start of my JSON should be like this:
image

Welcome to the Make community!

Then you shouldn’t be using JSON, but RAW or PLAIN or TEXT formats.

Check if the external service has that option.

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

I am using Glide and this is the only thing I have when using a webhook:

Isn’t there a way to modify the string in Make so I can take out that part?

Well you could turn JSON pass-through back to NO, and then map a sub-field back into JSON with the Transform to JSON module.

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

I found a solution!

I put my JSON as a string between these characters ‘<’, ‘>’:
image

Then I took them off in Make with two Text Parsers, created a variable and send it through a HTTP request:

and it worked :slight_smile:

2 Likes

Oh! If you can do this hack of a workaround then you don’t even need the middle three modules.

Then you can use the built-in replace function directly in the HTTP module:

{{ replace(1.value; "/(^<|>$)/g"; emptystring) }}

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!