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 / Copying email data int...
Power Automate
Answered

Copying email data into a new row in Excel

(0) ShareShare
ReportReport
Posted on by 8

Hi all,

 

I'm struggling in my first attempt to create a flow that will trigger when an email is received into a shared mailbox, and will then copy the sender's name and email subject, and append them to the next available row in a specific Excel worksheet.

As per the image below, if we receive an email into our mailbox, the sender's name and email subject are added to the highlighted row below:

smorty_0-1683266315065.png

And then when the next email arrives, the same thing occurs...it adds the next sender's name and email subject to the next row.

Is something like this possible to do?  The spreadsheet is kept in Sharepoint.

 

TIA, Smorty.

Categories:
I have the same question (0)
  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @smorty ,

     

    You can create flows like this:

    vzhoqianmsft_0-1683272527447.png

     

    The result of the example flow is like:

    vzhoqianmsft_1-1683272618159.png

     

    The first column is a value include date and time.

    "sender" column is the email address of sender.

    To get the same data format as in your picture, we need to use some formulas.

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • smorty Profile Picture
    8 on at

    Is it also possible to specify the column that I need to have the data in as well?

     

    In our file, the 'sender' information needs to be added into column I, and the 'subject' information into column J.

     

    Is that also possible?  Or do I need to look at swapping the columns around.  Swapping them around would be the last option though.

  • v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @smorty ,

     

    I don't understand what you mean. Why not set column I to 'sender' and column J to 'subject' in the excel file beforehand?

     

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • smorty Profile Picture
    8 on at

    Sorry, what I mean is, I don't know how to setup the flow so it takes the information from the email, and outputs that information into specific cells in the worksheet.

     

    As an example (see below), when the email comes into the shared mailbox, how do I add a new row and capture the:

    • date and add that into column A
    • the sender's name and add that into column I
    • the email subject and add that into column J

    smorty_0-1683512812810.png

     

    Apologies if I am not explaining it correctly.

     

    Also, this worksheet is not setup as a table.  Does it need to be to allow this flow to work?

  • Verified answer
    v-zhoqian-msft Profile Picture
    Microsoft Employee on at

    Hi @smorty ,

     

    If you have set the worksheet to table, you will see that all columns appear automatically in the "Add a row into a table" action.

     

     

    Best Regards,

    Habsburg Qian

    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • smorty Profile Picture
    8 on at

    Perfect and thanks for all your help, I can see the fields now, and also know for next time that any updates need to going into a worksheet that has been formatted as a table.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard