Skip to main content
Question

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

  • March 10, 2021
  • 1 reply
  • 48 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::

[{"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).

 

 

 

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

  • Author
  • 1 reply
  • March 10, 2021

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………. ]

}