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 / Count Unread Emails to...
Power Automate
Answered

Count Unread Emails to a Variable

(0) ShareShare
ReportReport
Posted on by 3

I am looking to use Power Automate to count unread emails in an inbox and then I'm saving that number to a sharepoint record.

 

Where im stuck is how do I count the unread emails? Most threads I find are about getting around the limit, but in my case that wont be an issue.

Categories:
  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 

     

    You can do it this way:

     

    Rhiassuring_0-1678916444453.png

     

    1) Get Emails, ensuring "Unread" is set to "Yes"

    2) Use a Compose - click in the Inputs field, select the Expression tab, type in "length()" and  between the brackets, click Dynamic Content and choose "Value" from your Get Emails output.

    3) Update whatever SharePoint item you want using the "Outputs" from your Compose. It will have the # of Unread. Mine was 2! 

  • VictorIvanidze Profile Picture
    13,083 on at

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard