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 / How to handling Email ...
Power Automate
Unanswered

How to handling Email Threads in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm pulling a list of emails from GMAIL using the "Retrieve email messages from IMAP" option. This list is stored in a variable retrieved from the inbox. However, every email thread is split into individual items in the list. So, an email conversation with 100 replies will appear 100 times in the list, with only some details like the sender and the message content changing as the thread progresses.

I'm struggling to find a solution because with the emails from a thread repeating multiple times, the flow tries to process each of these items one by one. If several emails with long conversations arrive, it would take an eternity for the flow to handle this entire list, when only the last email of each thread is what really matters for feeding the flow of actions.

Thank you in advance for your help!

Captura de tela 2024-06-20 112122.png
------

Captura de tela 2024-06-20 112257.png

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @jeanw 

     

    You might consider configuring your Gmail account in outlook on your local machine, which allows you to use Outlook to retrieve email messages for a more user-friendly experience.

     

    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Are the subject lines unique enough to tie them together.

    For example:
    add list
    get emails
    for each email
        if list does not contain subj line (less re:)
            add subj line to list
            'then process email
        else
            Next (email)
        end if
    end for each

    this way, each unique subj line only gets processed one time.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard