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 Apps / Conditional Schema in ...
Power Apps
Unanswered

Conditional Schema in Flow

(0) ShareShare
ReportReport
Posted on by

Hi,

Have a flow which receives a response on SOAP calls depending on how many products details were requested. If requested for multiple products; it replies with an array containing multiple objects related to each requested product , if requested for One product then it receives an object.

Now pushing this data back to Power App is where I am getting error. I am using Parse JSON with Schema to accept array then using select operator to collect what i need and responding to Power App. This approach works well when there are multiple products response however when I test this with only one product I get schema mismatch error that it was expecting array received an object.

 

I am thinking if I could use a Condition to evaluate if response if an array use one schema and if response is an object use other schema. I have tried to use Apply to Each with Parse JSON however Apply to Each also require Array and wont work on Object.

 

Please advise.

u4jaanus_0-1606727589747.png

Error shown

u4jaanus_1-1606727631875.png

 

 

 

 

Categories:
I have the same question (0)

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard