Skip to main content

Notifications

Power Apps - Building 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"

                        ]

                    }

                }

            }

        }

    }

}
  • FLMike Profile Picture
    FLMike 30,156 on at
    Patching into JSON SP-List column not possible?
    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

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,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard