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

Query Parameters on GET Actions - Custom Connectors

Hi,

 

I'm struggling to find information on how to add query parameters to my GET action I have created on my custom connector. I have tried:

 

  1. Adding the parameter to the GET request body - but the request action does not allow body input. 
  2. Creating a policy with a 'set query string parameter' template - but I can't tell if this has been applied to my actions.

 

1.

1.png

2.

2.png

 

The request I want to add a query parameter to:

3.png

 

So I am wondering what steps am I missing to get this working. If creating a policy is the correct solution, how to do I specify within my app what my parameter value is? Any help would be greatly appreciated.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II
Resolver II

Re: Query Parameters on GET Actions - Custom Connectors

Hi! @acummings 

try something like this

parameters:
  - name: ids
    in: query
    required: false
    type: array
    items:
      type: string
      format: uuid
      collectionFormat: multi
  - name: pageNumber
    in: query
    required: false
    type: integer
    format: int32

 params are ids and pageNumber 

View solution in original post

3 REPLIES 3
Highlighted
Resolver II
Resolver II

Re: Query Parameters on GET Actions - Custom Connectors

Hi! @acummings 

The url params should be declared in the custom connector swagger definition.

Can you show how you created the connector?

Highlighted
Frequent Visitor

Re: Query Parameters on GET Actions - Custom Connectors

Hey @ilton , 

Yes I created the custom connector through an on-premise gateway. I then added an 'GetAllRisks' action which works as expected for getting all values (tested). 

Now I want to add an optional LanguageFilter parameter to my request. 

Do I have to do this through the swagger editor? 

swaggerImg.png

Highlighted
Resolver II
Resolver II

Re: Query Parameters on GET Actions - Custom Connectors

Hi! @acummings 

try something like this

parameters:
  - name: ids
    in: query
    required: false
    type: array
    items:
      type: string
      format: uuid
      collectionFormat: multi
  - name: pageNumber
    in: query
    required: false
    type: integer
    format: int32

 params are ids and pageNumber 

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,341)