Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Trying and failing to get variable value from a field in Canvas form.

(0) ShareShare
ReportReport
Posted on by 216

Hi all, I am trying to parse a JSON object and get variable values in my PowerFlow, and I'm running into an issue where my Schema Validation is failing. The error is "Invalid type. Expected Object but got Array." Why is this expecting an Object? Apparently, this is a new issue, so if anyone can help, I would greatly appreciate it!

 

koontz_1-1665780728839.png

 

The error message:

koontz_2-1665780794128.png

 

My schema:

{
  "type""object",
  "properties": {
    "content": {
      "type""string"
    },
    "schema": {
      "type""object"
    }
  }
}

 

 

 

koontz_0-1665779984192.png

 

  • Verified answer
    Sundeep_Malik Profile Picture
    Sundeep_Malik 6,480 on at
    Re: Trying and failing to get variable value from a field in Canvas form.

    Hey @koontz 

    Before this make a compose. Add the values you are getting from power apps there. Run it. Then copy whatever you are getting from that compose in run history. 

    Go back to the flow, edit it, paste the same thing you copied to generate from sample. 

     

    Run the flow again it should work now.

     

    If not, post the ss of flow in edit mode. Or whatever data you are getting from power apps.

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics