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

View solution in original post

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,420)