web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to auto-fill Excel...
Power Automate
Unanswered

How to auto-fill Excel sheet with a .csv file that's received as an attachment?

(0) ShareShare
ReportReport
Posted on by 4

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?

 

 

Regards

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi,

     

    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

     

     

  • Owl_No Profile Picture
    4 on at

    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. 

  • anton-khrit Profile Picture
    197 on at

    You can use Parse CSV action from Plumsail Documents connector. It allows you to convert CSV into an array and variables for each column. Please read this article demonstrating how it works.

     

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard