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

Notifications

Announcements

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,692 Super User 2025 Season 2 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

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 Apps

#1
Kalathiya Profile Picture

Kalathiya 427

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 336 Super User 2025 Season 2

Last 30 days Overall leaderboard