web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Handling query arrays ...
Power Automate
Unanswered

Handling query arrays in custom connectors

(0) ShareShare
ReportReport
Posted on by 827

I'm working on my first custom connector, and have what I'm sure is a basic question, though I haven't had any luck finding the answer online.

 

I have a GET call with several query parameters that can accept multiple values, but I can't seem to figure out how to pass multiple values to the paramater in a way that works with the API and also makes sense to the users using the connector.

 

I've set the parameter to Array, but when I add it to a Flow, it's still a single field.  I've tried passing it arrays in several different ways, but none of them have returned data correctely.  I've tested the call using the HTTP connector, so I know the data I should be getting back.

 

What is standard procedure for dealing with arrays in query parameters?

 

Alternately, is there a way for me to add a Key -> Value table to the connector action so that people can add their own query parameters, similar to the way it works in the HTTP connector?

 

Thanks.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Jronash ,

     

    Could you share more details on your flow?

     

    How do you set the parameter to Array then add it to a Flow?

     

    The following doc on Microsoft Flow Arrays could be helpful:

    https://veenstra.me.uk/2018/07/10/microsoft-flow-shed-some-light-on-arrays/

     

    Further, hope the following doc on Custom connectors in Microsoft Flow be a reference as well:

    https://docs.microsoft.com/en-us/flow/developer/register-custom-api

     

    Best regards,

    Mabel        

      

  • Jronash Profile Picture
    827 on at

    I'm setting the paramater to array in the Custom Connection definition:

    array.PNG

     

    When I add the action to a flow, I get a single field.  If I put an array variable in that field, it doesn't return data correctly.  If I try to manually enter an array in the typical format used by GET requests, it also does not return data correctly.  It seems that the connector isn't formatting the array properly for a GET request.  I'm not sure what else to try.

    Array2.PNG

  • Hubix2000 Profile Picture
    4 on at

    Hi,

     

    we have the same issue with a custom connector. We need to add a list of ean codes to a get call.

     

    The swagger definition looks like that:

     

     "parameters": [
     {
     "name": "partner",
     "in": "query",
     "required": true,
     "type": "string"
     },
     {
     "name": "eanliste",
     "in": "query",
     "required": true,
     "type": "array",
     "collectionFormat": "csv",
     "description": "EAN List"
     }
     ]

    The collectionFormat is set to "csv" which is the right setting for swagger 2.0.
    Maybe we miss something. Please help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard