Hi MS Flowers,
This is my desired situation:
1. Receive .csv file as an attachment in Outlook > auto-upload this file to OneDrive for Business / SharePoint
2. Then, the content of the same .csv file should be auto-filled within an existing Excel sheet in the cloud
I managed the following:
1. Auto-upload attachments to the cloud
2. Get Rows from Excel file 1 > Insert Rows into Excel file 2.
However, these 2 Excel files already existed in the cloud.
Could anyone tell me if my desired situation is possible? And if so, how?
Flow can read the CSV file content as one operation not as line by line.
Assume in your case you need to read each line of your CSV file and insert to another existing excel sheet as each new rows.
So what you need is first of all convert your CSV file to JSON format using flow. Once you converted the file to JSON then you can read the contents by each line. Create a loop and insert the line contens in each row of the excel sheeet.
Thanks for the information.
What Flow do I use to convert the .csv file attachment to JSON? Keep in mind that the attachments can have a random name everytime.
In your case you will need to parse your CSV into an array using this action, then you can use Create XLSX document from template action from the same connector to generate an XLSX file. Please read this article describing how to work with XLSX templates.
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!