Skip to main content
Question

How to obtain multiple results in Search Action


I am building a private integration using API. 

My integration has Search Action which uses the API endpoint “/api/tasks?project_id=<project_id>”. 

API endpoint returns more than one results but integration shows always the first one. How to force multiple results for Search Action? 

 

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.

4 replies

@moroz_andrevv have the same issue


nicksimard
Forum|alt.badge.img+11
  • Zapier Staff
  • 2115 replies
  • August 29, 2022

Hi @moroz_andrevv!

Which app’s API are you connecting to, out of curiosity? Seeing the API docs would be super helpful here. Thanks!


Hi @nicksimard, thank you for reply!

I’m using this one https://apiv2.pitchbox.com/docs#tag/Tasks/paths/~1api~1tasks/get

It seems like it returns multiple results in item

My “perform” method just return the response.items as array with items. So I don’t know how to force multiple items.

@juliana_pb follow the thread, I guess we find the solution


shalgrim
Forum|alt.badge.img+8
  • Zapier Staff
  • 406 replies
  • September 2, 2022

HI @moroz_andrevv !

The best way to have a search find and return more than one is to return them as line item fields. Of course, then the downstream action needs to be set up for downstream actions as well.

Hope that helps. Let us know if you have any more questions!