tried doing this for the codes: Node 1: workflow.nocodeSuccess = false
const leadName = {
name: user.username
}
try {
const Nameresponse = await axios.post('(webhook1)', leadName)
workflow.nocodeSuccess = true
}
catch (error) {
console.error(error)
} here is node 2 on a separate workflow workflow.nocodeSuccess = false
const leadData = {
Q1: workflow.Question1,
Q2: workflow.Question2,
Q3: workflow.Question3,
Q4: workflow.Question4,
Q5: workflow.Question5,
Q6: workflow.Question6,
Q7: workflow.Question7,
Q8: workflow.Question8,
Q9: workflow.Question9,
Q10: workflow.Question10
}
try {
const response = await axios.post('(webhook1)', leadData)
workflow.nocodeSuccess = true
}
catch (error) {
console.error(error)
}