Hi, I'm currently developing a web application that gets the data through a rest api, I just wanted to ask if there is a way that I can use a parameter with multiple values like for example application/sample/employees?status=Terminated,Resigned something like that? Thanks!

Hey,

Have you seen this thread?

https://www.outsystems.com/forums/discussion/48755/rest-get-hoe-to-pass-multiple-values-for-same-parameter/

Essentially, you'd write something like application/sample/employees?status={Status}, and then in your Status variable, you'd construct your String of different values.


Afonso Carvalho wrote:

Hey,

Have you seen this thread?

https://www.outsystems.com/forums/discussion/48755/rest-get-hoe-to-pass-multiple-values-for-same-parameter/

Essentially, you'd write something like application/sample/employees?status={Status}, and then in your Status variable, you'd construct your String of different values.



Thanks for the reply, I actually tried it first unfortunately it's not working on my end. :'(

Are you getting any errors? Can you show us what you're doing with some screenshots or some code?

Afonso Carvalho wrote:

Are you getting any errors? Can you show us what you're doing with some screenshots or some code?


this is the sample api, there is no error, however only the recent value is being recognized as the parameter value which is *QA111.

What happens if you send it as worker_number=*QA100,*QA111?

Are you certain that your format will be correctly processed by the API provider? Like I mentioned in the other topic, there's no format set in stone, and people will implement this as convenient.

Has your API Provider given you examples on how you should send multiple values for the same variable?

One surefire way to test this would be to install Postman or SOAPUI and see what happens when you send those values in those two different ways.