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 / Patching into JSON SP-...
Power Apps
Unanswered

Patching into JSON SP-List column not possible?

(0) ShareShare
ReportReport
Posted on by 2
Famous first words: I dont know if this is the correct forum. But its a tough question :)
 
I even tried doing this with a nested gallery.
With this patch expression I get the error message, that specified (in this case - "prediction") column doesnt exist.
I want to patch the input back to original datasource, namely Doc_Answers in result_prediction_JSON column at the correct passage ("result")
What am I missing?
 
 
First I set this table variable:
Set(

    varPredictResultsCol,

    Table(

        ParseJSON(

            Text(

                LookUp(

                    Doc_Answers,

                    documentID = varDocID // this works

                ).result_prediction_JSON

            )

        )

    )

)
Then my gallery items property is set to this:
ForAll(

    varPredictResultsCol,

    {

        key: Text(Value.key),

prediction: ForAll( 
Table(Value.prediction),  { 
result: Text(Value.result), 
confidence: Value(Value.confidence) 
} 
) 
}
)

After that i want to patch via user TextInput:

Patch(

    varPredictResultsCol,

    LookUp(varPredictResultsCol, invisible_key_text.Text = ThisItem.key),

    {

        prediction: [{

            result: TexInputCanvas1.Text,

            confidence: ThisItem.prediction[0].confidence

        }]

    }

)

 

The JSON schema goes as follows:
{

    "type": "array",

    "properties": {

        "key": {

            "type": "string"

        },

        "prediction": {

            "type": "array",

            "items": {

                "type": "object",

                "properties": {

                    "result": {

                        "type": [

                            "string",

                            "null"

                        ]

                    },

                    "confidence": {

                        "type": [

                            "number",

                            "null"

                        ]

                    }

                }

            }

        }

    }

}
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    Hi
     
    No where do I see any errors, or pictures of the errors, or details of the data sets etc.
     
    its late but please share more, always always overshare. 

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

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard