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 / Update Excel file from...
Power Automate
Answered

Update Excel file from email attachment file

(1) ShareShare
ReportReport
Posted on by 119
Hi team, 
 
I have a flow to download an Excel file (ABC Trigger File) from a specified sender email and stored it in my OneDrive successfully. 
 
FYI, the email contain two Excel files:
1. ABC Master File
2. ABC Trigger File - consist from few model (ABC Trigger File_123.xlsx, ABC Trigger File_456.xlsx, ABC Trigger File_XYZ.xlsx)
 
Now, I need to update the data from the downloaded one or from the email to another Excel file into the main one, let's called it ABC File Trigger Main because I will use this as the main data source to connect to my Power BI dashboard. 
 
 
From here, I could see that:
1. I could download and upload the data in my OneDrive folder.
2. The main file (the first one with 12.1KB) is modified however when I opened the Excel, data is not updated.
 
I tried to use the List rows present in a table action but was wondering how can I define the downloaded data since it has multiple models.
 
Or is there any way that I could directly get data from ABC Trigger File and update it into my Main file without having to download it?
 
Appreciate if anyone could help me provide some guidance on this.
 
Thank you. 
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,479 Super User 2025 Season 2 on at
     
    I am not sure what you mean by models.
     
    The process is
    1. Save the file
    2. IF it has a Table - use LIst Rows Present in a Table, then Add Row into Main
    3. IF it does not have a Table, then you can use either a) graph, b) scripts or c) create table
     
    However it can take up to 10 minutes after you update the master file before it appears due to caching.
     
    However, I do not see any code that actually writes to the master. 
     
    To answer you, No, there is no way to just add the data without saving the "child". Technically speaking if it was a csv you could get the file content and concert it to text and parse it etc, but as its an Excel file, you must save it first
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • AR-03030545-0 Profile Picture
    119 on at
     
    I am not sure what you mean by models.
    By models, I mean some products has its own models.
    Example, EOP consist of EOP Samsung, EOP Apple, EOP Lenovo, etc... each model has its own Excel, same table header or column, just different data or content. 
    Once a week, I will receive an email from other department that consist 2 Excel file - RPA EOP Master List and EOP Trigger File_ModelName.
     
    However, I do not see any code that actually writes to the master.
    If the master here you are referring to the RPA EOP Master List Excel file that you see from the snapshot, this is another master list that I will use. 
     
    What I meant by I want to update all these data from different models into another master Excel file is another file. From the snapshot, I did write to the master - EOP_Trigger_File_GMC4B. Sorry for the confusion caused. I will change the name - EOP Trigger Main File.
     
    To answer you, No, there is no way to just add the data without saving the "child". Technically speaking if it was a csv you could get the file content and concert it to text and parse it etc, but as its an Excel file, you must save it first
    I have managed to save the Excel file as you can see from the flow I implemented - Create file 2.
     
    Correct me if I am wrong, I am trying to understand the flow,
     
    1. I need to save the Excel file first - done.
    2. I need to get the content so that it could read the Excel data or file - List row present in a table action
    3. Excel data will be updated into the main file (EOP Trigger Main File) - Add row into table (EOP Trigger Main File)
     
    Am I correct?
     
  • Verified answer
    AR-03030545-0 Profile Picture
    119 on at
     
    An update. I followed your advise and refer to a tutorial video to help me build the flow.
    I add a Compose and use Parse JSON to capture the file's content. 
    Video link: Tutorial Video
     
    It works wonder, but like you said it has delay in updating the master file. 
     
    Appreciate your insight, thanks a lot!

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard