Skip to main content

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? 

 

@moroz_andrevv have the same issue


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


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!