cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Path parameter Swagger definition

Path parameter definition with type array isn't parsed correctly by the Flow UI.
Consider the following definition:
parameters:
- name: "tag"
in: "path"
required: true
type: "array"
items: {type: string}
collectionFormat: multi

 

Flow UI is only displaying a single field for petId which makes it impossible to pass in an array.
The end goal is to end up with a path parameter that is something like this ?tag=x1&tag=x2 etc.

The above definition results in allowing you to add "items" for the tag query parameter which is exactly what I'm after. This makes me think that there is no array handling in Flow/Automate UI.

 

flow definition.PNGflow generated input.PNGflow swagger eq.PNG

 

 

 

 

 

 

4 REPLIES 4
Community Support
Community Support

 

Hi @neilvarnas ,

 

This seems more like a share than an issue, right?🤔

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Not sure what do you mean by share.

Thanks

I have the same problem.
PowerAutomate custom connectors cannot be used in actions, even if you define multiple parameters with the same name.

For example, if you request the following URL with the curl command,
curl -X GET https://xxxxx/api/issues?type=1&type=2

 

In the Swagger definition:

In the Swagger definition:
pahts:
  /api/issues:
    get:
       summary: GetIssues
       description: GetIssues
       parameters:
         - name: type
         - in: query
         - type: array
         - collectionFormat: multi
         - items: {type: integer}

After creating a custom connector, issuing a request in a test operation will result in the following:
https://xxxxx/api/issues?type=%5B1%2C2%5D

 

Instead of escaping [1, 2], we expect
https://xxxxx/api/issues?type=1&type=2

After many emails back and forth, Ms support said it's the way it works and they don't "support explosive arrays".

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (3,018)