Skip to main content

Notifications

Power Apps - Power Query
Suggested answer

How to patch/update into a JSON Sharepoint List Column

(0) ShareShare
ReportReport
Posted on by 2
Famous first words: I dont know if this is the correct forum. But it's a tough question.
 
 
How does the Patch expression look like in this scenario? I even tried to do this with a nested gallery, but it didnt work out
I'm really happy for every help and information :)
I only get an the specified column doesnt exist error.
My goal is here to patch into the correct passage of the JSON which is in a SP-List Column
 

This is the patch expression, i'm trying to use for my TextInputCanvas1:

Patch(

    varPredictResultsCol,

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

    {

        prediction: [{

            result: TexInputCanvas1.Text, 

        }]

    }

)



This is my variable:
 

Set(

    varPredictResultsCol,

    Table(

        ParseJSON(

            Text(

                LookUp(

                    DocExtract_Answers,

                    documentID = varDocID // this works

                ).result_prediction_JSON

            )

        )

    )

)

Then i iterate through the Table

ForAll(

    varPredictResultsCol,

    {

        key: Text(Value.key),

        prediction: ForAll(

            Table(Value.prediction),

            {

                result: Text(Value.result),

                confidence: Value(Value.confidence)

            }

        )

    }

)

 

Categories:
  • JD-21010831-0 Profile Picture
    JD-21010831-0 2 on at
    How to patch/update into a JSON Sharepoint List Column
    thanks for your help @mmbr1606
    unfortunately not, its still the same error
  • Suggested answer
    mmbr1606 Profile Picture
    mmbr1606 10,429 on at
    How to patch/update into a JSON Sharepoint List Column
    hey
     
     
     
    cn u  try this:
    Patch(
        varPredictResultsCol,
        LookUp(
            varPredictResultsCol,
            Text(Value.key) = ThisItem.key
        ),
        {
            prediction: Table(
                {
                    result: TextInputCanvas1.Text
                }
            )
        }
    )
    
    if it helped please mark as verified answer
     
    cheers

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

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard

Featured topics