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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power automate HTTP re...
Power Automate
Unanswered

Power automate HTTP response to canvas app - two schemas?

(1) ShareShare
ReportReport
Posted on by 690 Super User 2025 Season 2
Hello!
I have a Power Automate HTTP Response action in which I've added to the body two outputs consisting of arrays in JSON. These have different schemas. This response will return to a Power Apps canvas app OnSelect into two different collections. At least, that is my plan.
 
How do I construct the Response Body JSON Schema containing two different schemas one for each body output? Is this even possible? Is there a schema separator syntax I can use since I can generate them independently and combine them?
 
When I pasted in a sample of both payloads in series to generate the schema it did nothing.
 
By the way, this works like a charm when the body contains just one output straight into the single collection.
Also, I tried two Response actions in the flow with one in a parallel path but I could not get that to work.
 
Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Hi,
     
    Does the json schema you have created as shown in screenshot does not support both properties values (StorePrices & ZonePrices) ?
     
    Just to confirm ?
     
     
  • Cgangweg01 Profile Picture
    690 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Hi Nived,
     
    No, the schema in the screen shot only supports the StorePrices properties values.
    That was the first output I was working with.
     
    Thanks for any suggestion!
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Hi
     
    Ok got it, then why can't you pass a json example having two properties StorePrices and ZonePrices in single json structure to generate schema? This would help in generating schema that contains both collection.
     
    Take the following example
     
    {
    "StorePrices":[
    {"StoreName":"ABC",
    "StoreLocation":"NY"
    },
    {"StoreName":"DEF",
    "StoreLocation":"NY1"
    }
    ],
    "ZonePrices":[
    {"ZoneName":"Z1",
    "ZoneID":1},
    {"ZoneName":"Z2",
    "ZoneID":10}
    ]
    }
     
     
    When passing to JSON schema- it will generate json schema like below
     
    {
        "type": "object",
        "properties": {
            "StorePrices": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "StoreName": {
                            "type": "string"
                        },
                        "StoreLocation": {
                            "type": "string"
                        }
                    },
                    "required": [
                        "StoreName",
                        "StoreLocation"
                    ]
                }
            },
            "ZonePrices": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "ZoneName": {
                            "type": "string"
                        },
                        "ZoneID": {
                            "type": "integer"
                        }
                    },
                    "required": [
                        "ZoneName",
                        "ZoneID"
                    ]
                }
            }
        }
    }
     
     
    Now you can include both properties in single json object.
     
    Hope this helps !
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!

     
  • Cgangweg01 Profile Picture
    690 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Hello Nevid,
    Thank you so much! I was able to build the schema using your reply post as a guide for the placement of everything and it worked. The response output contained both payloads separated per schema. Now the next problem if you have insight ... see screen shot.
     
    How do I fill two separate collections once this payload is returned when the flow is run?
     
    It does not seem to be recognizing the ZonePrices property the way I have the expression written.
     
    Really appreciate the help!
     
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,972 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Hi
     
    Since respectively the schema is a bit irrelevant to the PA if you are returning, especially since you are passing it to a canvas app, you can simply send it back as a string for each, because the power app isn't going to look at any "schema" you include.
     
    truly, pass it back as a string, for both, then in the PA Side, you would generate the schema you need as it parses the return value.
  • Cgangweg01 Profile Picture
    690 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Thanks for the reply FLMike.
     
    Nevid's reply solved the problem regarding the JSON schema in the HTTP response. Worked like a charm. I am trying to mark this post answered but that doesn't seem to work.
     
    I will create another post regarding my next problem which is using that response to fill different collections in the canvas app on one button run select.
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,972 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Yeah the issue being that what you pass back to the Canvas App, matters little in some sense as to the how do you capture it and turn it into a Useful collection using JSONParse or other.
     
    That's why passing back a string or some potentially changing schema isn't really a big deal and why I said just use a string.
     
    I am glad you got what you needed :-)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Hi 
     
    If the answer has helped you to solve from Power Automate side- which i think is your objective- you can mark the correct answer as verified answer by checking the below checkbox near to the reply
     
    The next question which you have asked would be more related to PowerApps in which i am not an expert. Requesting you to post the query regarding that in powerapps community :)
     
     
  • Cgangweg01 Profile Picture
    690 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    Hello Nevid,
     
    I checked the box dozens of times on your reply with the answer below, but it does not save.  Every time I return it is unchecked. Trying again while submitting this reply.
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Power automate HTTP response to canvas app - two schemas?
    ok - may be i can mark that as answer if you are fine with that :)
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard