cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jackywei_BDF
Super User
Super User

How to solve UpdateIf function slow problem for power apps?

Dear all:

 

I am working on power apps with sharepoint list.

I would like to update one column and keep others for sharepoint list, so i using updateif to do so.

If i set updateIf( list1, Level <> 0 , { Comments:  ""}) as button onselect.

Jackywei_BDF_0-1654499539346.png

Jackywei_BDF_1-1654499650071.png

 

It is working, but it need cost 15 seconds to finish it.

It is so slow for me.

Would you please tell me how to solve this issue or use other function to do so?

 

Thanks a lot:)

 

 

1 REPLY 1
WarrenBelz
Super User
Super User

Hi @Jackywei_BDF ,

I am not how much quicker (if at all) this will be, but try

With(
   {
      wPatch: 
      Filter(
         list1,
         Level <> 0
      )
   },
   Patch(
      list1,
      ForAll(
         wPatch As aPatch,
         {
            ID: aPatch.ID,
            Comments: ""
         }
      )
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,715)