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 / How can we update mult...
Power Apps
Unanswered

How can we update multiple records in single update statement

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

We have multiple records which need to updated in a CDS table from canvas app. Can we update all the records with different values at once without using for all.
Kindly help us with solution.
Thanks in advance.

Categories:
I have the same question (0)
  • Bahalzamon Profile Picture
    on at

    Hey @devipriyanka 

     

    I would suggest UpdateIf, this will update all the matching records.

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-update-updateif

     

    fi you want to change everything just make the condition True, otherwise you can add multiple statements.

    UpdateIf(DataSource, Or(condition1, condition2, etc...),{Field1:"asdf", Field2: 5,etc...})

     

    this way you can expand its selection or limit it how you like. 😃

  • devipriyanka Profile Picture
    Microsoft Employee on at

    Thank you @Bahalzamon
    Here we have a collection of records which are around 20 that need to be updated. Can we do it with UpdateIf. 
    Please help

  • Bahalzamon Profile Picture
    on at

    Definitely, you could modify the entire dataset so be careful (safety third) 😋

    This is the first sentence from the documentation I provided in my last post just so you can see the official MS info. 😃

    Use the UpdateIf function to modify one or more values in one or more records that match one or more conditions.

     

    So for example if you just want 1 item use something like its ID, but if you want all records assigned to Bob to be assigned to Frank: UpdateIf(DataSource, Assigned="Bob",{Assigned:"Frank"})

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

WarrenBelz 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard