Showing results for 
Search instead for 
Did you mean: 
Resolver I
Resolver I

Conditional Schema in Flow


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.


Error shown







Helpful resources

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users


We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (105,660)