cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sam_sonepar
Helper I
Helper I

Custom Connector - Bank of Canada

Hi all,

 

I'm trying to make a custom connector with the Bank of Canada API in order to update a bunch of exchange rates in comparison to USD.

I tried to follow the documentation as much as I could but I get no response when I test it.

Here's all the information I added:

Scheme: HTTPS

Host: bankofcanada.ca

Base URL: /valet

Security: No Authentication

Summary: Get Exchange Rate

Description: Get the rate based on the USD

Operation ID: GetExchangeRate

Visibility: None

For the Request within the Definition Section, see the picture below

Request.PNG

See the picture below for when I edit the path

Path.PNG

 

When I run the test, I get this.

Test.PNG

 

If you try to access this link via the browser https://bankofcanada.ca/valet/fx_rss/FXUSDCAD (which is what I try to query the server in Flow), it works just fine so I'm not sure why it's not working in here.

Any help is appreciated!!

1 ACCEPTED SOLUTION

Accepted Solutions
PhilippeR
Resolver I
Resolver I

ok

got it work , seems the browser add www. in the url and its ok

try copy past my swagger connector and customize comment field

 

 

 

 

swagger: '2.0'
info: {title: BankOfCA, description: '', version: '1.0'}
host: www.bankofcanada.ca
basePath: /valet/fx_rss/
schemes: [https]
consumes: []
produces: []
paths:
  /: {}
  /FXUSDCAD:
    get:
      responses:
        default:
          description: default
          schema: {}
      summary: CallRate
      operationId: callrate
      parameters: []
definitions: {}
parameters: {}
responses: {}
securityDefinitions: {}
security: []
tags: []

 

View solution in original post

3 REPLIES 3
PhilippeR
Resolver I
Resolver I

Not an expert but a think body response is not valid for custom connector.

I've done the same custom connector with the same "unknown" response.

You can test the called url with your browser you'll get the file, don't forget to add bearer.

PhilippeR_1-1612360372767.png

PhilippeR_2-1612360430867.png

 

 

PhilippeR_0-1612360309944.png

 

PhilippeR
Resolver I
Resolver I

ok

got it work , seems the browser add www. in the url and its ok

try copy past my swagger connector and customize comment field

 

 

 

 

swagger: '2.0'
info: {title: BankOfCA, description: '', version: '1.0'}
host: www.bankofcanada.ca
basePath: /valet/fx_rss/
schemes: [https]
consumes: []
produces: []
paths:
  /: {}
  /FXUSDCAD:
    get:
      responses:
        default:
          description: default
          schema: {}
      summary: CallRate
      operationId: callrate
      parameters: []
definitions: {}
parameters: {}
responses: {}
securityDefinitions: {}
security: []
tags: []

 

View solution in original post

Worked just fine, thanks!

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (48,096)