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

Patch a collection to excel and ovewrite

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Jcook
Super User
Super User

Hi @minglee95 

 

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

 

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

3 REPLIES 3
Jcook
Super User
Super User

Hi @minglee95 

 

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

 

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

minglee95
Frequent Visitor

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.

Hi @minglee95 

 

Yea for sure!

 

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

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,527)