I have a simple question about how to pass data from webhook to an action.
I’m making an integration to my ERP system eGestor. When a contact is added or updated I receive the code of the contact. Then I want to fetch this contact data in an action.
The trigger response is such as:
{
"action": "created",
"module": "contatos",
"securityToken": "f9bd04e650ff0919577cbb59d74330",
"codigo": 196,
"date": "2024-06-06 11:20:48"
}
I have configured the output variable as “codigo” (code of the contact), as below:
On the action I need to pass this code as a parameter url like this: https://api.egestor.com.br/api/v1/contatos/${codigo}, but this doesn’t work.
When testing in a zap the trigger + action, it results in:
codigo is not defined What happened (You are seeing this because you are an admin): Executing creates.getContact.operation.perform with bundle codigo is not defined Console logs: Stack trace: ReferenceError: codigo is not defined at eval (eval at makeFunction (/var/task/node_modules/zapier-platform-core/src/tools/schema-tools.js:11:12), <anonymous>:4:54) at execute .
.
.
Any help is appreaciated.