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 / update massive sharepo...
Power Apps
Answered

update massive sharepoint list

(0) ShareShare
ReportReport
Posted on by 55

Hello,

Hello, I have a sharepoint list with calculated fields, so I need to update it but I cannot write the records one by one because they are too many. How can I do?

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @Rob_G 
    The PATCH function can update several records simultaneously.  It's not well-known: but you do not have to modify records one-by-one.

    From the MS documenation:

    ppp.JPG

    Link to MS Docs for PATCH:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch#:~:text=Use%20the%20Patch%20function%20to,the%20Edit%20form%20control%20instead.

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Rob_G ,

    Do you want to update the Calculated field from your SP List in your canvas app?

     

    Firstly, if you want to update the Calculated field from your SP List in your canvas app, I afraid that there is no way to achieve your needs.

    The Calculated field from your SP List would be recognized as a 'Read-Only' type field, which could not be updated in canvas app. So you could not update the Calculated field from your SP List in your canvas app using Patch function or SubmitForm function.

     

    If the 'Calculated field' in your SP List is based on other columns in same list, you could consider update the related columns in your canvas app, then the 'Calculated field' would be re-calculated automatically in your SP List.

     

    If you want to update your SP List multiple records via pressing a button once time, rather than one by one, I think the ForAll function and Patch function could achieve your needs. You could consider add a Gallery in your app, connect it to your SP List. Then configure your Gallery as a Editable GRID, add some Text Input box inside your Gallery, set the Default property of the Text Input box to following:

    ThisItem.Field1
    ThisItem.Field2

    ...

    add a "Submit" button outside your Gallery, set the OnSelect property to following:

    ForAll(
     RenameColumns(Gallery1.AllItems, "ID", "ID1"),
     Patch(
     'Your SP List',
     LookUp('Your SP List', ID = ID1),
     {
     Field: TextInput1.Text,
     Field2: TextInput2.Text,
     ...
     }
     )
    )

    you could made changes to the related fields directly through the Text Input box control, then press the "Submit" button, then all changes you made in your Gallery would be updated back to your SP List.

     

    More details about configuring a Gallery as a Editable GRID, please check the following video resource:https://www.youtube.com/watch?v=gRAnpZJESiE

    https://www.youtube.com/watch?v=O2WqhRTUhyw

     

    Please try above solution, hope it helps your scenario.

     

    Best regards,

  • mdevaney Profile Picture
    29,993 Moderator on at

    @Rob_G 
    If you are updating several records at once the method proposed by @v-xida-msft is going to be painfully slow.  FORALL + PATCH updates records one-by-one whereas my suggestion updates all records at once.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Rob_G ,

    Have you taken a try with the solution I provided above? Is it helpful?

     

    If you have any issue when you try the solution, please feel free to let me know here.

     

    Regards,

  • Rob_G Profile Picture
    55 on at

    Thank you
    Sorry for the delay, I understand what I said.
    It occurred to me, it was not having calculated fields in my sharepoint list and I ran the calculations in the Powerapps application.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard