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 III
Super User III

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 III
Super User III

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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,482)