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:
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):
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.
The start of my JSON should be like this:
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.
samliew – request 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.
samliew – request 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 ‘<’, ‘>’:
Then I took them off in Make with two Text Parsers, created a variable and send it through a HTTP request:
and it worked
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) }}
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!