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 / Reading the attachment...
Power Automate
Unanswered

Reading the attachment in email and append the rows to an existing file in sharepoint

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Power Users,

 

I'd like to ask if somebody already did a flow that reads the attachment in an email and get the rows inside to add its contents in an exisisting file inside sharepoint with all the columns aligned and intack.

 

Thanks in advance

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    To read rows from an excel file, it is needed that the excel file sits in an online document library (SharePoint/ OneDrive etc.). Also, to read the rows from an excel, you need to mention the specific file and the table from which yo want to read those rows (the excel data should be formatted as a table) and the excel connector in flow does not support dynamic file name referencing which means that the excel file needs to be there on the onedrive or sharepoint and in the List rows action you need to select that file y clicking the folder icon and then the table from the dropdown. 

     

    One way you could do this is, create a flow that takes the attachment from the flow and replaces an already exisitng excel file. Post that you can reference this excel file in your flow and perform the further actions. Makes sense? 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @yashag2255,

     

    Thanks for the feedback.

     

    I tried creating this kind of flow but got lost because I am struggling with understanding the terms inside the flow.

    Please check out the flow that I'm planning to create along with my remarks. I also agree with what you want the flow should be.

     

     

    What are the steps.png

     

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @Anonymous 

     

    That trigger is for when a new file is created. But you will be updating the file based on the attachment in the email right?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @yashag2255 

     

    Correct.

    I already create a separate flow to collate the emails with attachment.

    Now, I'm rerouting my focus on this kind of flow whenever a specific sharepoint folder was updated.

     

    Can you help with the missing steps?

  • NareshTakashi Profile Picture
    50 on at

    Hi, I had the same query. Here's what you need to do

     

    https://powerusers.microsoft.com/t5/Building-Flows/Forms-Attachment-Data-into-Excel-Table/m-p/675606#M91009

     

     

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 412

#2
Vish WR Profile Picture

Vish WR 305

#3
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

Last 30 days Overall leaderboard