https://discord.gg/botpress logo
Execute code to Make with webhook url doesn't exec...
# 🤝help
m
Hi All, the idea is to send data from various variables to Make.com in order to list it in a google sheets document. Actually very simple. I created an execute card with the following script in it: workflow.nocodeSuccess = false const leadData = { screeningopensollicitatie: workflow.screeningopensollicitatie, technischeachtergrond: workflow.technischeachtergrond1, diepgang: workflow.talking, diepgang2: workflow.diepgang, regio: workflow.regio, naam: worklfow.naam.first, achternaam: workflow.naam.last, email: workflow.email, telefoon: workflow.telefoonnummer, leeftijd: workflow.leeftijd, opleiding: workflow.opleiding, bellen: workflow.hoelaatbellen, response: workflow.responseNee, response2: workflow.responseja, negatiefdiepgang: workflow.negatiefdiepgangreactie } try { const response = await axios.post('https://hook.eu2.make.com/gtwrg1al9gk7lgwanha1fk22b3mh5t5f', leadData) workflow.nocodeSuccess = true } catch (error) { console.error(error) } As you can see, I have variables which are being captured on different stages. The contact details are captures in the last node. The execute code is placed in this last node. My question is, do I have to place an execute code on every node where I ask for input? Or will just one execute code in the last node work? I am getting 2 errors: 1. Error executing action "inline-card:Post lead data to external API and update success status..js" in flow:Main:node:gegevens [Error, worklfow is not defined 2. An unexpected error occurred. [Error, No flow ID provided . Flow: N/A | Node: N/A. This error should not happen unless your conversation is in a corrupted state (eg. in progress on an older version of the chatbot). To reset your conversational manually, say "//state/reset" to your chatbot to force the state to reset. If this error persists, please contact support.]