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 / Help : update in bulk
Power Apps
Unanswered

Help : update in bulk

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, 

I am trying to bulk update records in SQL table "dbo.Test" from Gallary "Gallery1"

I have a collection which is made from Gallery1

approve.JPG

 

here is the onSelect when they click Approve

ForAll(Collection1,Patch(
'dbo.Test',
First(
Filter(
''dbo.Test',
ID = Gallery1.ID
)
),
{
Status:"Approved"
}
))

 

is it correct?

Categories:
I have the same question (0)
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Try this: 

    ForAll(Collection1,Patch(
    'dbo.Test',
    First(
    Filter(
    ''dbo.Test',
    ID = Collection1[@ID]
    )
    ),
    {
    Status:"Approved"
    }
    ))
    
     

    Let me know if this works. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • eka24 Profile Picture
    20,925 on at

    Try:

    ForAll(Collection1,Patch(
    'dbo.Test',
    First(Filter('dbo.Test',ID = Gallery1.ID)),
    {Status:"Approved"}))

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    If you only want to update "Approved" to Status field, please try with UpdateIf function, which could be more efficient.

    UpdateIf('dbo.Test', ID in Collection1.ID, {Status:"Approved"})

    Hope this helps,

    Sik

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard