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 Automate / Exporting to CSV and c...
Power Automate
Unanswered

Exporting to CSV and concatenating into XLSX on OneDrive

(0) ShareShare
ReportReport
Posted on by 475

Hello, 

 

Hope you are all doing well.

 

Funny question for today cause i think i'm stuck.

I created a SharePoint site with a Powerapps form. I have a workflow that exports the content of the form into CSV files. this works perfectly. I have 16 sections in my form (it's a big form connected to 16 lists) and I get my 16 CSVs filtered on the selected department. 

 

the problem is, it's multiple CSVs and i need to consolidate everything into a single document that is used as a report (and XLSX document) so i created an additional document where  ....I first tried to use PowerQuery to link the CSVs to this document but due to the fact that i work in a secured environment, queries fail...... however i figured out a connection  to the CSVs work so i created 16 connections to my CSVs.

 

Now while it works when i test it for myself on SahrePoint the problem i have is... everything is currently in a SharePoint library , multiple users might request the consolidated report clicking a button on my form. the thing is it overrights the same CSV files again and again which is not really efficient. also, since it's a connection, if user A does a request, downloads the document the B does a request and A opens again the document, A gets the values from B....that's not good.

 

so my idea was to send all the files to the user's OneDrive.... so when i do this i want the flow to create a folder in the user's OneDrive and put the CSV in this folder

 

fig1.png

and my first question here is... it does it for me  but will it do it for the user who starts the workflow in his own OneDrive for Business ?

 

After this i copy the consolidated XLSX file from SharePoint to the ...user's OneDrive for Business ... but  there are connections in it and if i'm not mistaken...documents were linked on SharePoint but once they are copied to one drive... ok the CSVs are on OneDrive but the XLSX document still tries to retrieve information from SharePoint..... so then how can i keep the connection working with the files that have been moved to the same location on OneDrive

 

Voila...I'm a bit lost with transposing everything to OneDrive .... and I know my question is a mix between Power Automate and Excel...

 

If someone has a very good idea to help me achieving this .... 😛

 

Thanks a lot for your help !

 

Categories:

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard