web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector Type ...
Power Automate
Unanswered

Custom Connector Type Mismatch error - how to allow mixed type of data

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

My custom connector returns a type mismatch error. The API's response sometimes contain an array (for more than 1 record) or an object (for 1 record). How do I configure the custom connector to allow mixed type of data.
Can I use Swagger 3.0 definition since it support OneOf and AnyOf option which allows mixed type.
If not how do I do it in OpenAPI 2?

Categories:
I have the same question (0)
  • JS-27041152-0 Profile Picture
    on at

    Unfortunately, this is currently a limitation on the platform.

     

    I can think of the following workarounds-

    (1) Do not provide a schema - will mean that customers will need to parse the response and use it based on whether they are expecting one or more than one. Not a great option.

    (2) You could provide 2 actions - one for object and another for the array. They can point to the same API endpoint using a policy. Customers will need to pick the appropriate action. Again, not a great option.

     

    In future, we may provide ability to handle/normalize this in the connector itself (map it array, for instance). This is easier and will probably come out sonner. The other is support for multiple schemas (anyOf) in our platform - which is a harder challenge.   

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard