Skip to main content
Best answer

JSON parameters in Webhooks POST action


I need to send this from Zapier (see “parameters” field)

{
  "account": "5698227xxxx",
  "name": "requerimiento_1",
  "parameters": ["Francisco"],
  "phone": "5699349xxxx"
}

 

But Zapier sends this

{  "account": "5698227xxxx",  "name": "requerimiento_1",  "parameters": "Francisco",  "phone": "5699349xxxx"}

 

I tried to use nested parameters (with the double underscore) and got this

{  "account": "5698227xxxx",  "name": "requerimiento_1",  "parameters": {    "": "Francisco"  },  "phone": "5699349xxxx"}

 

Help!! 

Thanks!!!

Best answer by SamBBest answer by SamB

Just wanted to follow up here for anyone also running into similar issues here to mention that in order to send a nested array the Custom Request action would need to selected for the Webhooks by Zapier app.

 

If that action is selected and it’s still altering the format when double underscores are used, then it could be that the Unflatten option needs to be set to No. By default it will automatically try to convert fields with double underscores so that may be why it’s being altered:
398fbe9cc1facdfbc943da29aa1faf7a.png

If that doesn’t do the trick, it may be worth using a JSON validator like JSONLint to check its valid. And we have some helpful guides and resources that may be useful in troubleshooting further:

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.

2 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @fromero 

Can you please further elaborate on your use case?

Are you getting an error from the receiving app?


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7442 replies
  • Answer
  • September 2, 2021

Just wanted to follow up here for anyone also running into similar issues here to mention that in order to send a nested array the Custom Request action would need to selected for the Webhooks by Zapier app.

 

If that action is selected and it’s still altering the format when double underscores are used, then it could be that the Unflatten option needs to be set to No. By default it will automatically try to convert fields with double underscores so that may be why it’s being altered:
398fbe9cc1facdfbc943da29aa1faf7a.png

If that doesn’t do the trick, it may be worth using a JSON validator like JSONLint to check its valid. And we have some helpful guides and resources that may be useful in troubleshooting further: