Skip to main content

Notifications

Community site session details

Community site session details

Session Id : HgWPaogvF9U+vsnP6Ms4xa
Power Automate - General Discussion
Unanswered

Flow to count emails received each day

Like (0) ShareShare
ReportReport
Posted on 9 Jun 2020 12:00:08 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

  • GIGI99 Profile Picture
    4 on 22 Feb 2022 at 18:36:33
    Re: Flow to count emails received each day

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

  • GIGI99 Profile Picture
    4 on 22 Feb 2022 at 18:31:36
    Re: Flow to count emails received each day

    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

  • WillPage Profile Picture
    1,879 on 17 Dec 2020 at 00:35:38
    Re: Flow to count emails received each day

    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.

  • mlm198 Profile Picture
    2 on 16 Dec 2020 at 22:54:06
    Re: Flow to count emails received each day

    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

  • LinkeD365 Profile Picture
    105 on 11 Jun 2020 at 07:13:58
    Re: ThisRe: Flow to count emails received each day

    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

     

  • pete_bradshaw Profile Picture
    2 on 10 Jun 2020 at 15:58:10
    ThisRe: Flow to count emails received each day

    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 09 Jun 2020 at 14:50:44
    Re: Flow to count emails received each day

    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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard