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

Custom Connector not detecting required variables

Hello!

 

I'm trying to create a custom connector in powerapps.  I've read and seen that powerapps is meant to automatically detect variables in sample URLs and json responses.  This is all fine and good, I've seen examples of it in video's.  However, its not working for me, and I'm not sure what I'm doing wrong (Very likely a formatting issue?)

 

This is what I use as my sample import:

AColdCanadian_0-1601575369440.png

 

 

I've also tried it like this:

AColdCanadian_2-1601575610739.png

I've ALSO tried this (accounting for the base url already input into powerapps)

 

This is the background from the API documentation showing that both the [date] and the [user-id] are supposed to be variables

AColdCanadian_1-1601575496754.png

 

This is the result I get after importing from the sample URL (NO VARS):

Note: The address in the URL bar will change depending on what I put in, however, it never reads the vars

AColdCanadian_4-1601576070827.png

 

 

 

 Can anyone weigh in on why its not detecting those variables? and how I can fix that?

 

Cheers,

AFreezinCanadian

1 ACCEPTED SOLUTION

Accepted Solutions

Figured it out!

 

Powerapps/The Swagger Editor will only accept path variables if they are defined in the path using "{}"

 

so, by using the URL sample of "https://api.fitbit.com/1/user/{user-id}/activities/date/{date}.json" I got it to work.  See the difference being the curly braces instead of the squared brackets.

 

Cheers,

AColdCanadian

View solution in original post

3 REPLIES 3
AColdCanadian
Frequent Visitor

Sorry, third screenshot didn't go for some reason:

 

"I've ALSO tried this (accounting for the base url already input into powerapps)"

AColdCanadian_0-1601576267195.png

 

AColdCanadian
Frequent Visitor

Anyone have any ideas on this?

 

Thanks!

A(Cold/Freezin)Canadian

Figured it out!

 

Powerapps/The Swagger Editor will only accept path variables if they are defined in the path using "{}"

 

so, by using the URL sample of "https://api.fitbit.com/1/user/{user-id}/activities/date/{date}.json" I got it to work.  See the difference being the curly braces instead of the squared brackets.

 

Cheers,

AColdCanadian

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (4,061)