Hello
The response i get from this Zap is the following:
{ attempt: '018949cc-912f-59a9-b5f2-93a4d341b875',
id: '018949cc-912f-59a9-b5f2-93a4d341b875',
request_id: '018949cc-912f-59a9-b5f2-93a4d341b875',
status: 'success' }
When i see the response in Zapier itself, it is the following:
id
374
row
374
COL$A
Fiat
COL$B
500
COL$C
Fiat 500
COL$D
Hatchback
COL$E
Normal
COL$F
€ 19.000,00
_zap_data_was_found
true
How can i make sure that i can extract these fields from my response instead of just seeing if the zap is successfull or not?
The code to make the request is the following:
workflow.zapierSuccesss = false;
const leadData = { carbrand: workflow.carBrandModel };
const zapierWebhookUrl = 'https://hooks.zapier.com/hooks/catch/XXX/?_format=json';
try { const response = await axios.post(zapierWebhookUrl, leadData, { headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' } });
console.log(response.data);
if (response.data.status) { workflow.zapierSuccesss = true; } else { workflow.zapierSuccesss = false; }
} catch (error) { console.error(error); }
Many Thanks Miguel