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 Automate
Suggested Answer

Email Folders

(0) ShareShare
ReportReport
Posted on by
I wanted to analyse a outlook folder and identify each email address and give me a summary total  - any tips please?
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,195 Moderator on at
     
    This is a great use case, but there are a few important things to be aware of depending on how you approach it.

    Option 1: Power Automate (for ongoing automation)
    You can build a flow to read emails and extract sender addresses, but counting them directly inside Power Automate has limitations.
    A reliable pattern would be:
    • Use Get emails (V3) and point it to your folder (enable pagination if needed)
    • Add a Select action to extract sender email using:
                    item()?['from']?['emailAddress']?['address']
    • This gives you a clean list of email addresses
    At this point, instead of trying to count inside the flow, send the data to:
    • Excel (table)
    • SharePoint list
    Then use grouping or reporting there.

    Trying to maintain counts inside a loop with variables can cause issues due to self-referencing limitations and concurrency conflicts.
     
    Option 2: Excel (fastest for one-time analysis)
    If you just need a quick summary:
    1. Export the Outlook folder to Excel
    2. Insert a Pivot Table
    3. Put the Sender column in Rows and Values (Count)
    This gives you an instant summary of how many emails came from each address.
     
    Option 3: Power BI (best for reporting)
    If you want ongoing insights:
    • Connect Power BI to your mailbox or exported data
    • Group by sender
    • Build a simple report or dashboard
    Summary
    Use Power Automate if you need automation, but avoid counting logic inside loops
    Use Excel for quick analysis
    Use Power BI for ongoing reporting and trends

    This approach keeps things simple and avoids common pitfalls with loops and variables in Power Automate.
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

    Sunil Kumar Pashikanti, Moderator
    Blog: https://sunilpashikanti.com/posts/
     

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 462

#2
Vish WR Profile Picture

Vish WR 256

#3
David_MA Profile Picture

David_MA 242 Super User 2026 Season 1

Last 30 days Overall leaderboard