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 / Cant read second prope...
Power Automate
Unanswered

Cant read second property of object

(0) ShareShare
ReportReport
Posted on by 15

Hi everyone, 

 

currently building a flow that needs to grab information from an object, but ive found that JSON PARSE isnt getting information from the second property onward, is there a problem with my JSON?

 

getting more specific, the Parse JSON correctly validates the object, when I change "label" too an integer it fails, but it fails in conditions and when put into compose it input and outputs an empty html page.

 

screenshots are simplified for testing but cause the same error.

 

jelittle_0-1679061448443.png

jelittle_1-1679061771283.png

this is the JSON Schema:

{
    "type""object",
    "properties": {
        "ItestName": {
            "type""object",
            "properties": {
                "id": {
                    "type""integer"
                },
                "label": {
                    "type""string"
                }
            }
        }
    }
}

 

 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Cant read second property of object

    Hey @jelittle 

     

    Not sure this will fix your problem or not, but in schema you can write the type of label to string and integer both.

    So make this change to your schema:

     

    {
    "type": "object",
    "properties": {
    "ItestName": {
    "type": "object",
    "properties": {
    "id": {
    "type": "integer"
    },
    "label": {
    "type": ["string","integer"]
    }
    }
    }
    }
    }

     

    Hopefully this works 🙂

  • Verified answer
    jelittle Profile Picture
    15 on at
    Re: Cant read second property of object

    Hi @Sundeep_Malik,

     

    error turned out to be a simple blindness, I have glasses now, The error in the original schema was an that there was an extra '.' in the "label" string, so it was calling for "label" instead of ".label".

     

    in my test example, "ItestName" should be 'testName", very unlucky on my end that I managed to miss the typo. 

    I would be intrigued to know why the flow was still verifying the schema properly, but wasn't able to use the data.

     

    Thanks for the help either way! 

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard