How to pass two query parameters with the same name

Dear all

in a GET All API call for an external collection,

I am trying to pass two parameters with the same name, ie:

GET https://…/?column=FIELD1&column=FIELD2&…

It seems Adalo only takes the last parameter with a given name.

Would you have any idea about this ?

kind regards,

Pierre

Hey there @christo

Try using a comma to separate the values instead of 2 parameters.

Like this: https://…/?column=FIELD1,FIELD2&…

Hero @Flawless

Thanks a lot for your help
I have tried
FIELD1, FIELD2
FIELD1, FIELD2
“FIELD1”, “FIELD2”
FIELD1,
FIELD2
FIELD1;FIELD2
FIELD1
FIELD2

Alas it did not work.

Pierre

It looks like all of your responses have spaces in them. You want FIELD1,FIELD2 after the = with no spaces.

Like this: https://…/?column=FIELD1,FIELD2

You provide no information as to what API you are using. I recommend that you look at the developer documentation for the API you are using to see if it’s possible to even pass multiple values in a query.

Thanks a lot again

FIELD1,FIELD2 with no spaces does not work.

My receiving api wants to receive something like
column=FIELD1&column=FIELD2…

The error message its sends me is
{
“error”: 400,
“code”: 3100,
“source”: “Statut,Brief”,
“message”: “Column does not exist”
}
So I guess Adalo sends column=FIELD1,FIELD2

Pierre

You can’t use same variable name twice

Thanks for your help

I have found a solution to my issue
TeamDesk has another way to query data without specifying the fields to retrieve: which is to query for ‘VIEWS’ instead of ‘TABLES’.

Kind regards,

Pierre

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.