web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building 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?

I have the same question (0)
  • Gochix Profile Picture
    1,933 Moderator on at
    Re: Update values Patch

    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
    Re: Update values Patch

    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,933 Moderator on at
    Re: Update values Patch

    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
    Re: Update values Patch

    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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard