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 values Patch
Power Apps
Answered

Update values Patch

(0) ShareShare
ReportReport
Posted on by 8

Hi! I am trying to update a sharepoint list that has several lines for the same title, but it only updates the first one. I have also managed to update everything, but in this case if there are several lines it takes several minutes to complete. How can I do in less time?

Categories:
  • Gochix Profile Picture
    1,937 Moderator on at

    Please paste your code in here and we can have a look how to improve your speed. 
    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • Little Profile Picture
    8 on at

    Sorry!here is the code

     

    ClearCollect('LISTADO5',Filter('LISTADO',Title = SelectFile)); ForAll('LISTADO5',UpdateIf('LISTADO',Title=SelectFile,{RAZON:DROPRAZON.Selected.Title, COMENTARIO:TEXTCOMMENT.Text}))

     

    this work, but takes long time

  • Verified answer
    Gochix Profile Picture
    1,937 Moderator on at

    I would simplify your code to:

    Patch('LISTADO',
     ForAll(
     Filter('LISTADO',Title = SelectFile),
     {
     ID:ID,
     RAZON:DROPRAZON.Selected.Title,
     COMENTARIO:TEXTCOMMENT.Text
     }
     )
    )

    UpdateIf would cost you a bit of performance. Using ForAll correctly will reduce the wait time.
    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • Little Profile Picture
    8 on at

    Thank you very much! Now is super fast!!!

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 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard