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

Dynamic schema in custom connector

I've created a custom connector which I initially only used in Power Automate. This custom connector uses dynamic schemas to determine the result object based on the input parameters. This is done in the swagger definition of the custom connector as described here https://docs.microsoft.com/en-us/connectors/custom-connectors/openapi-extensions#use-dynamic-values

 

This works fine in Power Automate. When I select some input data I can see a call in the network tab in developer tools in the browser, and i'm able to use my schema in the next steps in my flow.

 

However, when I use this same connector in PowerApps, I never get a result object. I'm unable to select any fields or use anything of the result of my calls. When I put the output directly in a variable or collection, I see something is in there, but i'm not able to use it. It doesn't have any named fields.

When I monitor this using developer tools in my browser, I see the actual data call with data returned. But never a schema call.

 

My question is, is dynamic schemas supported in PowerApps for a custom connector? And if so, is there anything specific I need to do to make this work?

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @joerio ,

Yes, this is not supported in powerapps.

X-ms-dynamic-schema  is a kind of OpenAPI extension only supported for Logic Apps and Power Automate.

Here's a doc about the OpenAPI extensions that only supported for Logic Apps and Power Automate in details for your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/openapi-extensions#x-ms-url-encoding

In powerapps, you could only provide an OpenAPI definition file without  including those OpenAPI extensions to create custom connectors.

Here's a doc about this solution for your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @joerio ,

Yes, this is not supported in powerapps.

X-ms-dynamic-schema  is a kind of OpenAPI extension only supported for Logic Apps and Power Automate.

Here's a doc about the OpenAPI extensions that only supported for Logic Apps and Power Automate in details for your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/openapi-extensions#x-ms-url-encoding

In powerapps, you could only provide an OpenAPI definition file without  including those OpenAPI extensions to create custom connectors.

Here's a doc about this solution for your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA 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

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,261)