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 / How to use "Patch" wit...
Power Apps
Unanswered

How to use "Patch" within a ForAll loop in PowerApps

(0) ShareShare
ReportReport
Posted on by

Hello All:

I have developed a PowerApps form (screenshot) for uploading multiple files to a Document Library. When clicking the Upload button, I would also like to update the "Category" metadata field.

 

I am showing the "OnSelect" statement which successfully uploaded the files, but I cannot figure out how to use "Patch" for the metadata update.

Please help.

Al

DocLoader.JPG
Categories:
I have the same question (0)
  • AmeerJab Profile Picture
    370 on at

    Hello

     

    i would suggest first put your attachemt.files in a collection, and in the forall please check the below formula and adjust it based on your needs

    forall( [data/collection i need to add to old table], updateif(collection/metadata, a condition that uniquely identify the record,{oldcolumn: [data/collection i need to add to old table][@col name in new data])

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 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard