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 / Patch a collection to ...
Power Apps
Answered

Patch a collection to excel and ovewrite

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi and Good Day to everyone,

I know how to patch a single record to excel file and overwrite it, but what I do not know is, how to patch a collection that have multiple item inside it and overwrite the data if it exists in the Excel file. 

Any help or ideas would be appreciated.

Categories:
I have the same question (0)
  • Verified answer
    Jcook Profile Picture
    7,783 Most Valuable Professional on at

    Hi @Anonymous 

     

    You basically do the same thing. But you add a  ForAll() function at the beginning of the patch.


    Good blog on this here

    https://www.codesharepoint.com/sharepoint-tutorial/powerapps-forall-function-with-examples

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, @Jcook 

     

    I try it but to no avail, was wondering if you could help me on this one?
    I have a collection with 2 or more items,  and when user click a button, it will patch/update an excel file using the collection and if any same data exist, it will overwrite it.

  • Jcook Profile Picture
    7,783 Most Valuable Professional on at

    Hi @Anonymous 

     

    Yea for sure!

     

    When you say overwrite any existing same data. Would this just be an update?

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard