astonishing-exabyte-43823
03/19/2024, 8:24 PMjs
workflow.ZapierSucces = false
const LeadData = {
CompanyName: workflow.CompanyName,
CompanySize: workflow.CompanySize,
Reason: workflow.CompanyReason,
email: workflow.CompanyEmail,
phone: workflow.CompanyPhoneNumber
}
try {
const response = await axios.post('https://hooks.zapier.com/unique trigger :)', LeadData)
console.log(response)
workflow.ZapierSucces = true
} catch (error) {
console.error('Error calling Zapier API:', error)
}
Hmm, kind a wondering Zapier gets triggered and executed but ZapierSucces is never true beyond.
Am I fucking it up some where haha?