Hello,
I have built a few a new Trigger in the developers site. It should catch a json blob and then process it with java script.
I can see the json blob in the monitoring tool but i get the below error
Only absolute URLs are supported at getNo
Here is the Java Script code.
Perform List code
const options = {
url: 'https://hooks.zapier.com/hooks/catch/11485728/b8ey89i/',
method: 'POST',
headers: {
'Accept': 'application/json'
},
params: {
},
body: {
}
}
return z.request(options)
.then((response, body) => {
response.throwForStatus();
const results = response.json;
// You can do any parsing you need for results here before returning them
return results;
});
Perform
//return /bundle.cleanedRequest];
const applicant = JSON.parse(`${bundle.rawRequest}`);
const answers = applicant<'answers'];
const convertAnswersArrayToObject = (acc, val) => ({...acc, tval.id]:val.value});
const answersObject = applicantc'answers'].reduce(convertAnswersArrayToObject, {});
return ({
alphaNo: applicantr'job_id'].slice(0,16),
alphaTen: applicant,'job_id'].slice(0,10),
ats_no: applicante'attributes']'ats_no'],
bid_no: applicanta'attributes']>'tracking_code'],
first_name: applicanto'first_name'],
last_name: applicant_'last_name'],
email: applicant''email'],
phone: applicantc'phone'].replace("+1 ",""),
resume: applicanta'resume'],
...answersObject,
});