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 / Flow to count emails r...
Power Automate
Unanswered

Flow to count emails received each day

(0) ShareShare
ReportReport
Posted on by 2

Hello everyone,

 

I hope you can help with a query regarding Flow and Outlook.

 

I've never used Flow before and want to know if it's possible to record the number of received emails from a shared mailbox in a table using either lists or Excel in SharePoint.

 

The daily count just needs to increment by 1 for each email received, and record that against the corresponding date. The table will only have the Date and Count fields.

 

It's this possible?

 

Any advice or pointers will be much appreciated

Categories:
I have the same question (0)
  • LinkeD365 Profile Picture
    105 on at

    Hey @pete_bradshaw 

     

    Couple of options

     

    1. Create a flow which is triggered everytime you receive an email & read / increment count 
      1. Not ideal, depending on how many emails as it is a flow run each time
    2. Have a scheduled flow run every day which finds all emails in inbox received that day

    Annotation 2020-06-09 154841.png

     

    If my reply helped, consider marking it as answered. Thanks for your time in sharing your issues and helping the community

     

  • pete_bradshaw Profile Picture
    2 on at

    Hi, many thanks for getting back to me with this. I'll have a look tomorrow now to see if I can get it to work.

     

    A couple of questions;

    1. Regarding the first suggestion, we expect about 500 emails a day with the bulk during core work hours, would that volume have an impact on performance of Flow?  I'm leaning to the second option as it seems lighter and will only be run once a day out of hours, but I'm curious about potential difficulties large volumes may cause.

     

    2. The second option could probably be run once at some point after midnight to perform the Flow. Can this be added to the bottom of a list or add a new row to a spreadsheet?

     

    I'm happy to do some reading and practice here if there is an online source that can be recommended?

     

    Many thanks 😀

  • LinkeD365 Profile Picture
    105 on at

    Hey @pete_bradshaw 

     

    1. This won't impact Flow performance, it might have unwanted outcomes. Say you add 1 to the count each time, you have to read a count first, then write it. Between the read and the write, another email may have triggered an update, so the count may be off. Unlikely, but possible.

     

    2. Definitely, the Excel connector supports this.

     

    https://www.youtube.com/watch?v=ibqFGgkZ1Cs

     

    Cheers

     

    If my reply helped, consider marking it as answered. Thanks for your time in sharing your issues and helping the community

     

  • mlm198 Profile Picture
    2 on at

    I am trying to implement this but not sure what the output term is to feed into my excel table of date and count?

     

    Are you able to help.

     

    Thanks in advance.

     

    Matthew

  • WillPage Profile Picture
    2,307 Super User 2025 Season 2 on at

    To get a count of items in an array, use the length() function.

    Add a Compose action. With the cursor in the input box, switch to the expression editor (as opposed to dynamic content), type length() and place the cursor between the brackets.

    Now click on the Dynamic Content tab.

    The expression will remain in view (can be buggy, if it doesn't, try again) and you can then scroll down to find the dynamic content that represents the array of items from the Get emails action. It might be called 'value'.

    When you click it, it places the dynamic content reference in the expression. Save and run that and see if you get a number in that compose.

  • GIGI99 Profile Picture
    4 on at

    Hi ,

    What is the maximum no that can be set in  the field "Top" ?  - a mailbox could have 100s - 1000's of emails per day

  • GIGI99 Profile Picture
    4 on at

     How to use the TOP field in V3 get emails ? If you want all emails - what should this be set to ?

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard