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 / Process Email flow fil...
Power Automate
Unanswered

Process Email flow filtering on the cc field for webmail

(0) ShareShare
ReportReport
Posted on by

I'm new to PA and I am halfway through the Become an Expert on Power Automate Desktop learning paths so please forgive me if this is a simple question that I'm just missing.

 

I'm trying to process any inbound email for a specific webmail account that is cc'd to any other company mail.  

  • I can successfully build a flow that retrieves all email to that account and moves it to the desired folder using the Retrieve Email and Process Email actions. So at least I know my IMAP info is set up correctly.
  • However, the email filters for RetrieveEmail don't include an option to filter on the cc field (or I don't see that).
  • If I add a For Each loop, the %CurrentItem% does show a .cc so I tried using the If action to target only the emails that the cc = *@companyname.com
  • The modified flow still runs and doesn't throw any errors but it doesn't move the emails to the folder now.

Here's the flow

MSPA Desktop Email Processing Flow.png

Any help or guidance would be greatly appreciated!

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    %CurrentItem.Cc% is treated as a list, so you should do a nested "For each" to "for each" through that list inside of the "for each" through email list.

     

    • Retrieve email messages
      • For each %CurrentItem% in %RetrievedEmails%
        • For each %CurrentItem2%in %CurrentItem.Cc%
          • If %CurrentItem2% = *@cnsllc.org Then
            • Process Email Message - %CurrentItem%
          • EndIF
        • End 'For Each
      • End 'For Each

    Best of luck!

  • VJR Profile Picture
    7,635 on at

    Hi @NibbleMeThis 

     

    Did you also try the contains operator in the "If" statement with the * removed?

     

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
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard