Question

How to obtain multiple results in Search Action

  • 29 August 2022
  • 4 replies
  • 150 views

Userlevel 1

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? 

 


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

Userlevel 7
Badge +11

Hi @moroz_andrevv!

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

Userlevel 1

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

Userlevel 6
Badge +8

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!