cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Custom connectors and HTTP GET with multiple, repeated Query Parameters

I’m adding some REST calls to an existing custom connector.  The specific HTTP GET call I want to make is as follows:

 

http://theIPAddress:8080/theProductName/restful/alarms?landscape=0x100000&attr=0x11f56&attr=0x12b4c&...

 

Note the repeating attr values, above (there are two).

 

And here's the Action I've added in Flow:

 

flowQueryParameterDuplicates.png

 

As indicated by the red highlight in this screenshot, Flow seemed to pick up only one of my attr parameters.  Whereas, the URL (above) has multiples.

 

I’ve scoured Google and the Flow Community pages, but I’m not able to find a solution.

 

Anyone have any experience with how to make a Flow Custom connector accept multiple, repeated Query parameters?

 

2 REPLIES 2
manuelstgomes
Community Champion
Community Champion

Hi 

 

There's no defined standard to parse multiple Query Parameters with the same name.

 

This stackoverflow discusses this in detail.

https://stackoverflow.com/questions/24059773/correct-way-to-pass-multiple-values-for-same-parameter-...

 

Basically this depends on the implementation of each platform and Flow may ignore the next occurrence with the same name.

 

Ideally, you should avoid this.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

carlilelance
Advocate IV
Advocate IV

There is a "hack" to get around this. If you use the HTTP Action (GET Method) and instead of using the Query fields (they must ALL be blank for this to work), you can put the queries as part of the URI. 

 

carlilelance_0-1624651528184.png

 

This allows one to overcome the limitations mentioned by different implementations of multiple query parameters. Another pitfall to avoid is if your queries have spaces in them. You can get around this by creating a variable for the URI string, and passing it in as a variable. 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,102)