cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

CUSTOM CONNECTORS: Hiding API Key and Other Parameters Not Working?

So... I'm fairly certain I've created Custom Connectors in the past where:

  • I've edited a Request Parameter
  • Entered a Default value
  • Marked it as Internal
  • Then its not required in the Custom Connector Function in the PowerApp

Why is this no longer working?

Example:

  • API-Version Default value entered
  • Marked as internal
  • image.png
  • API-Version shows "grayed out" in the CC Test Area
  • image.png
  • BUT
  • Still shows required in the actual PowerApp
  • image.png

Troubleshooting so far: 

  • Updated Connector
  • Removed/readded/ the Custom Connector from/to the App
  • Saved/closed/reopened the app. No change...

Why? Thoughts?

1 ACCEPTED SOLUTION

Accepted Solutions
Dawidvh
Level 10

Re: CUSTOM CONNECTORS: Hiding API Key and Other Parameters Not Working?

Hi @ericonline 

 

You seem to have followed the correct troubleshooting steps. The only thing that might cause this is the 'Is Required' setting which is set to no, that makes it optional and causes it to display on the front end. I agree that this doesn't completely make sense as you have specified a default, but it should do the trick.

 

You will have to readd the connection to the app, but from your troubleshooting steps I can see you have know this Smiley Wink

 

twitter: @dawidvh

youTube: https://www.youtube.com/user/dawidvanheerden

**If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions. AND we get points for it Smiley Wink

5 REPLIES 5
Dawidvh
Level 10

Re: CUSTOM CONNECTORS: Hiding API Key and Other Parameters Not Working?

Hi @ericonline 

 

You seem to have followed the correct troubleshooting steps. The only thing that might cause this is the 'Is Required' setting which is set to no, that makes it optional and causes it to display on the front end. I agree that this doesn't completely make sense as you have specified a default, but it should do the trick.

 

You will have to readd the connection to the app, but from your troubleshooting steps I can see you have know this Smiley Wink

 

twitter: @dawidvh

youTube: https://www.youtube.com/user/dawidvanheerden

**If you found this reply helpful, please mark this as the answer to close the topic and make it easier to find for other people with similar questions. AND we get points for it Smiley Wink

Dawidvh
Level 10

Re: CUSTOM CONNECTORS: Hiding API Key and Other Parameters Not Working?

Hi @ericonline 

 

Did this manage to solve the problem?

 

Have  a great day.

Super User
Super User

Re: CUSTOM CONNECTORS: Hiding API Key and Other Parameters Not Working?

Hi @Dawidvh ! 

Thank you for the follow up and thank you for the solution. 

You were right. Once I marked those parameters as "Required", they were no longer needed in the Custom Connector. I did not have to remove / readd the Custom Connector, just open the app and the changes were active.

#PowerHomies!

Super User
Super User

Re: CUSTOM CONNECTORS: Hiding API Key and Other Parameters Not Working?

Hi @Dawidvh ,

Weirdest thing. Today the Custom Connector is not working and is requiring "api-version" again... strange.

image.png

image.png

Super User
Super User

Re: CUSTOM CONNECTORS: Hiding API Key and Other Parameters Not Working?

Weird.. I cant explain why, but the query needed to be changed from THIS:

ClearCollect(
    colAPIResults1
        API.GETthing1(
            {
                'api-version': 1.0,
                query: varLatLong,
                'subscription-key': "123"
            }
        )
);

ClearCollect(
    colAPIResults2,
        API.GETthing2(
            {
                'api-version': 1.0,
                query: "THINGS",
                'subscription-key': "123",
                lat: varLat,
                lon: varLong
            }
        ).results
)

...TO this...

ClearCollect(
    colAPIResults1,
        API.GETthing1(
            "1.0",
                {query: varLatLong}
        )

);

ClearCollect(
    colAPIResults2,
        API.GETthing2(
            "1.0",
            20000,
            {query:"THINGS",lat:varLat,lon:varLong}
        ).results
)

Working now, but not sure why the change needed to occur 2-3 days later like this.. I haven't touched this connector since last week. 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 46 members 4,343 guests
Please welcome our newest community members: