Hi all
Hoping someone with Javascript expertise can help me out. What I am trying to do is send the final output data into an Airtable field. I have done this in another Zap where the trigger is a webflow form and basically have tried to adjust the code to work with a webhook instead.
I have the following setup:
Trigger: Catch Hook
Action: Code by Zapier. In the input data I have the following;

Then I have the following code:
var hookBootcamps = inputData.bootcamp
var hookPrenatal = inputData.prenatal
var hookPostnatal = inputData.postnatal
var hookMentalHealth = inputData.mentalHealth
var hookLifestyle = inputData.lifestyle
var hookBodyTransformation = inputData.bodyTransformation
var hookBodybuilding = inputData.bodybuilding
var hookStrengthConditioning = inputData.strengthConditioning
var hookNutrition = inputData.nutrition
var bootcamp
var prenatal
var postnatal
var mentalHealth
var lifestyle
var bodyTransformation
var bodybuilding
var strengthConditioning
var nutrition
if (hookBootcamps == "true") {
bootcamp = "Bootcamp"
} else if (hookBootcamps == "false") {
bootcamp = ""
}
if (hookPrenatal == "true") {
prenatal = "Prenatal"
} else if (hookPrenatal == "false") {
prenatal = ""
}
if (hookPostnatal == "true") {
postnatal = "Postnatal"
} else if (hookPostnatal == "false") {
postnatal = ""
}
if (hookMentalHealth == "true") {
mentalHealth = "Mental Health"
} else if (hookMentalHealth == "false") {
mentalHealth = ""
}
if (hookLifestyle == "true") {
lifestyle = "Lifestyle"
} else if (hookLifestyle == "false") {
lifestyle = ""
}
if (hookBodyTransformation == "true") {
bodyTransformation = "Body Transformation"
} else if (hookBodyTransformation == "false") {
bodyTransformation = ""
}
if (hookBodybuilding == "true") {
bodybuilding = "Bodybuilding"
} else if (hookBodybuilding == "false") {
bodybuilding = ""
}
if (hookStrengthConditioning == "true") {
strengthConditioning = "Strength & Conditioning"
} else if (hookStrengthConditioning == "false") {
strengthConditioning = ""
}
if (hookNutrition == "true") {
nutrition = "Nutrition"
} else if (hookNutrition == "false") {
nutrition = ""
}
output = [{bootcamp, prenatal, postnatal, mentalHealth, mentalHealth, lifestyle, bodyTransformation, bodybuilding, strengthConditioning, nutrition}];
When I run the test though I’m not getting any Output:

Thanks in advance!