Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ZA1+BpmINlRESeCblNUyPI
Power Apps - Building Power Apps
Answered

Custom Connection - API with URL - Definition - Create Connector error

Like (0) ShareShare
ReportReport
Posted on 13 Apr 2020 12:56:20 by 12

I have a parameterized API URL:

https://api.healthyme.com/v1/groceries/{fname}/fresh/{fdesc}?user_key=1234

eg: https://api.healthyme.com/v1/groceries/fruits/fresh/apple?user_key=1234

 

For input = Fuji Apples. The url has to become eg: https://api.supermarket.com/v1/groceries/fruits/fresh/apple?user_key=1234

For input = Washington Apples. The url has to be same eg: https://api.supermarket.com/v1/groceries/fruits/fresh/apple?user_key=1234

For input = Oreo. The url has to be same eg: https://api.supermarket.com/v1/groceries/Biscuits/fresh/Oreo?user_key=1234

 

When I try to create a connector I get this this:

 

Specified swagger has the following errors: 'Definition is not valid. Error: 'Error : type : The property 'type' is not valid. If this property is an extension, its name must begin with "x-". ## Error : features : The property 'features' is not valid. If this property is an extension, its name must begin with "x-". ## Error : results : The property 'results' is not valid. If this property is an extension, its name must begin with "x-". '

Categories:
  • Elosian Profile Picture
    2 on 25 Aug 2021 at 09:02:23
    Re: Custom Connection - API with URL - Definition - Create Connector error

    I am getting this error and I have "Power Automate per user with attended RPA plan" and "Microsoft Power Apps Plan 2"

    The error message is extremely misleading if it boils down to licenses

  • Verified answer
    v-xida-msft Profile Picture
    on 17 Apr 2020 at 01:14:08
    Re: Custom Connection - API with URL - Definition - Create Connector error

    Hi @Harini ,

    Currently, the Custom connector is a Premium connector in Power Apps/Power Automate, which requires standalone Power Apps license or Power Automate license to use it (PowerApps Plan 1 license at least).

     

    But if you signed up a community plan for your account, you could create and use unlimited custom connectors within your Community Environment. Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/maker/dev-community-plan#which-features-are-included-in-the-power-apps-community-plan

     

    If you want to use custom connectors in Production or Trial Environment, you must own standalone Power Apps license (PowerApps Plan 1 license at least) to use custom connector.

     

    Best reagrds,

  • Harini Profile Picture
    12 on 16 Apr 2020 at 13:48:15
    Re: Custom Connection - API with URL - Definition - Create Connector error

    Hello Team, 

     

    The connector is now being created. I am getting this prompt though when I try to use it.

     

    Is the usage of a custom connector with open API allowed to be used in powerApps only in premium subscription?

     

    I have the community subscription.

     

     

    premium.PNG

  • Harini Profile Picture
    12 on 16 Apr 2020 at 11:36:32
    Re: Custom Connection - API with URL - Definition - Create Connector error

    Hello,

     

    The custom connector creation happened. I tried using it and I got the message as shown in the attachment. does it mean that for community powerapps users, using an open API as custom connector is not allowed?

  • v-xida-msft Profile Picture
    on 14 Apr 2020 at 06:54:41
    Re: Custom Connection - API with URL - Definition - Create Connector error

    Hi @Harini ,

    Sure. Please take a try with it, check if the issue is solved.

     

    If you have any questions about custom connector, please feel free to let me know here.

     

    Best regards,

  • Harini Profile Picture
    12 on 14 Apr 2020 at 06:50:37
    Re: Custom Connection - API with URL - Definition - Create Connector error

    Thank you Kris Dai, I will try it out and update here 😄

  • v-xida-msft Profile Picture
    on 14 Apr 2020 at 05:44:47
    Re: Custom Connection - API with URL - Definition - Create Connector error

    Hi @Harini ,

    How do you create your custom connector? Through "Import an OpenAPI  file" or "Import an OpenAPI from URL"?

     

    Based on the screenshot that you mentioned, I think there is something wrong with your imported OpenAPI definition file.

     

    As an alternative solution, please consider create your custom connector from Blank as below:

    10.JPG

     

    Then specify the Host and Base Url for your custom connector as below:

    11.JPG

    Then you may need to specify a proper authentication way for your custom connector, if this Rest API you want to access do not need any authentication, please just specify "No authentication" option within the Security Tab.

    Within the Definition tab, click "New action" option to add action path within your custom connector. Configure it as below:

    12.JPG

    Then you could edit the "User_Key" query parameter and set a default value for it as below:

    14.JPG

     

    13.JPG

    After that, you need to specify a proper response Body for this action path. Just click the "Default" response, then click "Import from sample" option, then type proper JSON Schema within the Body property:

    15.JPG

    Note: In order to get proper response for this HTTP request, you could test this request using Postman Tool, then copy the Response result into above Body property.

     

    More details about creating a custom connector in PowerApps, please check and see if the following video could help in your scenario:

    https://www.youtube.com/watch?v=dBCS1nPsDiE&t=1s

     

    Best regards,

  • Harini Profile Picture
    12 on 13 Apr 2020 at 16:33:01
    Re: Custom Connection - API with URL - Definition - Create Connector error

    It is an Open API, available on the internet... I did not create it... so does your suggestion still hold good?

  • Carsten_Growth Profile Picture
    on 13 Apr 2020 at 14:27:26
    Re: Custom Connection - API with URL - Definition - Create Connector error

    I would recommend building your custom API connection first with a tool like Postman. You can then safe the Postman collection after you´ve successfully tested your API connections and import them. This should avoid yours having issues with the swagger definition file.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,769 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard