Hi there,
I have a Find Action in one of my Zaps, but I want to limit the output to just one entry in the returned array.
Basically, the Find Action looks up a record based on a user inputted ID, and then returns all of the fields for that record (lets say; name, address, age). But, I only want to make one of these fields (‘name’) available to users for the next step of their workflow.
I’m using the default return response at the moment, but I’m not sure how to amend this to just return one object from the array rather than all of them:
return z.request(options)
.then((response) => {
response.throwForStatus();
const results = response.json;
// You can do any parsing you need for results here before returning them
return results.value;
Any help would be appreciated!