Skip to main content

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!

Hi @gesmuk - Thank you for your question! So that we can get you the right type of support, we kindly ask that you direct all developer support questions to our Support team directly: http://zpr.io/t4NNK - This helps us get an accurate capture of your account details so that we may assist you quickly. Thank you for understanding!


@gesmuk - If you don’t mind, could you post the API response so we can see what the records look like? Thanks.