I am having trouble extracting data from the JSON below:
[
{
“headers”: {…com.br",
“user-agent”: “python-requests/2.31.0”,
“content-length”: “725”,
“accept”: “/”,
“accept-encoding”: “gzip, deflate”,
“content-type”: “application/json”,
“x-forwarded-for”: “19…41”,
“x-forwarded-host”: “…com.br”,
“x-forwarded-proto”: “https”
},
“params”: {},
“query”: {},
“body”: [
{
“orcamento_informado”: “cpf_cliente”,
“nome_cliente”: “nome_cliente”,
“cpf_cliente”: “numero do cpf”,
“telefone_cliente”: 4198…7,
“contact:”: {
“name”: “nome sistema - teste”,
“number”: “554…0317”
},
“company”: {
“name”: “Nome empresa - sistema”,
“id”: “e84f1191…95”
},
“ticket”: {
“id”: 489…23,
“hash”: “E9413A6B166…9EF390D9137”,
“fields”: [
{
“field”: “email”,
“value”: “cemail”
},
{
“field”: “campanha”,
“value”: “camanha”
},
{
“field”: “origem”,
“value”: “cagem”
},
{
“field”: “link_crm”,
“value”: “camnk”
},
{
“field”: “regiao”,
“value”: “camao”
}
],
“tags”: [
“TA”
]
}
}
],
“webhookUrl”: “https://…”,
“executionMode”: “test”
}
]
When trying to assign the values from the body to a SET node, the variables in the SET node receive NULL, even though the values are correctly coming from the WEBHOOK.
The strangest thing is that when I test it in edit mode, the flow works perfectly, but when we go to production, the values received in the webhook body are not recognized in the flow.