cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Petter120
Frequent Visitor

Bulk update sharepoint list very slow

Hi i have this Gallery connected to a sharepoint list and when i update the column "Utfall" thats yellow marked by pressing the save button "Spara",  it takes 1 minutes and 30 seconds to update it. 

Petter120_0-1618817516444.png

Is there any faster way to get this done?

The code that im using for the OnSelect event for the button is:

ForAll(Gallery1.AllItems;
    UpdateIf(
        Produktionskommentar; ID = Value(ID); {Utfall:Value(txtUtfall.Text)}))



Thanks Petter

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Super User II
Super User II

Hi @Petter120 ,

This approach will reduce the execution time:

 

 

ForAll(
    Gallery1.AllItems AS dataFromGallery;
    Patch(
        Produktionskommentar;
        LookUp(Produktionskommentar; ID = dataFromGallery.ID); 
        {Utfall:Value(txtUtfall.Text)}
    )
)

 

 

Hope it helps !

View solution in original post

6 REPLIES 6
gabibalaban
Super User II
Super User II

Hi @Petter120 ,

This approach will reduce the execution time:

 

 

ForAll(
    Gallery1.AllItems AS dataFromGallery;
    Patch(
        Produktionskommentar;
        LookUp(Produktionskommentar; ID = dataFromGallery.ID); 
        {Utfall:Value(txtUtfall.Text)}
    )
)

 

 

Hope it helps !

View solution in original post

Wow no it takes 3 seconds. 

Thanks 🙂

Now i was too fast its not updating the sharepoint list (Probably why it goes so fast), any ideas why is it something with the ID?

 

I updated my post. Please give it a try in this form.

Petter120
Frequent Visitor

Now it works, thank you

askondo
Microsoft
Microsoft

@gabibalaban Thank you for all your responses to the forum.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (61,466)