Skip to main content
Question

PerformList returns an array but still complains that it's not an array. Why?

  • 10 March 2021
  • 1 reply
  • 42 views

Good day.  I’m trying to setup a REST hook and when testing my trigger I’m getting a weird error:

With the applicatin/json response text from the API::

p{"id":"1738"},{"id":"1739"}]

 

Clearly the result is an array.  Any ideas would be much appreciated.  I’m sure I’m missing something simple somewhere (I’m using all of the defaults provided by Zapier).

 

 

 

After a lot of trial and error, I found that this seems to resolve my issue:

 

 

Where I added the element “leads” to the JSON package being returned from the API method and then insert my array there.

i.e.

{

    “leads” :   ……….insert array here………. ]

}