fetch(url, { method: "POST", headers: headers, body: JSON.stringify(data) })
.then((res) => {
return res.json();
})
.then((json) => {
// Do something with the returned data.
var output = json.apicallsetoutput;
console.log(output);
callback(null, output);
})
.catch((error) => console.log(error));
For some reason zapier is only taking in the first record of var ouput. Am I missing something to ensure that it is reading all records in output?