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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Count incoming email in a shared mailbox and save to a file in Sharepoint

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I'm new to Power Automate and would like to build a flow for counting incoming e-mail in a shared mailbox. The purpose is to count incoming e-mail (have one row per e-mail), save this in Sharepoint and then display the data in Power BI.

 

I've set up a connection to the shared mailbox and the Sharepoint. But don't really know what the next step is.

 

Ultimately I'd like to save every incoming email in one .csv-file (or .xlsx-file is .csv isn't optional) in a Sharepoint-folder with columns/data such as:

  • From
  • To
  • CC
  • Date
  • Subject
  • Body

And more if possible.

 

The best thing would be if I could have one .csv/.xlsx-file with rows of emails per year.

 

Thanks in advance!

 

 

Sincerely

Ash

I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Count incoming email in a shared mailbox and save to a file in Sharepoint

    Hi @Ash-PA 

    Thank you for your posting.

    According to your description, you want to save every incoming email to a csv-file or xlsx-file.

    I have made a test on my side and please take a try with the following workaround

    • Add a proper trigger:When a new email arrives in a shared mailbox (V2)
    • Add a "Add a row into a table" action, File field set to dynamic content of the " When a new email arrives in a shared mailbox (V2)" trigger.

    v-LilyW-msft_0-1622438368693.png

    Then save the flow and test it. 

    When a new email be sent to shared mailbox

    v-LilyW-msft_1-1622438368696.png

    The new row will be added into the excel.

    v-LilyW-msft_2-1622438368700.png

    If you want to receive an email with the file every year, you can create a scheduled cloud flow to send an email to you every year.

    Please refer to as below:

    v-LilyW-msft_3-1622438368701.png

    v-LilyW-msft_4-1622438368704.png

    v-LilyW-msft_5-1622438368708.png

    After Flow runs, can receive an email as below:

    v-LilyW-msft_6-1622438368709.png

    Hope the content above may help you.

    Best Regards

    Lily

  • Ash-PA Profile Picture
    5 on at
    Re: Count incoming email in a shared mailbox and save to a file in Sharepoint

    Hi @v-LilyW-msft,

     

    Thank you so much for the help.

     

    It really did just what I wanted it to do 😊


    Sincerely
    Ash

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard