Skip to main content

Notifications

Power Automate - General Discussion
Answered

forward only the first email with the same subject

(0) ShareShare
ReportReport
Posted on by 6

Our ERP system automatically sends me updated PO PDF emails whenever there is a change in price, quantity, or cost. However, the subject line of these emails remains the same. Typically, I manually forward only the initial email to the vendors, as many of the subsequent changes are internal and not necessary to send to them again. I am looking to create a flow where Outlook forwards only the first email with the same subject, allowing me to decide whether the subsequent PDFs should be sent. Implementing this flow will significantly reduce the time spent on sending PO PDFs. I am seeking assistance as I am currently stuck in building each steps for this flow. Your help would be greatly appreciated.

  • Re: forward only the first email with the same subject

    Hi @chingwen ,

     

    Here is a sample. Datasource is sharepoint list.

    vxiaochenmsft_0-1685942969898.png

    vxiaochenmsft_1-1685943093908.png

    Title eq '@{triggerOutputs()?['body/subject']}'

     

    vxiaochenmsft_2-1685943119620.png

     

    Best Regards,

    Wearsky

  • chingwen Profile Picture
    chingwen 6 on at
    Re: forward only the first email with the same subject

    I think it gives me a good starting point. Will try!

  • Re: forward only the first email with the same subject

    Hi @chingwen ,

     

    Thanks for the clarification.

    If time is the only difference, then the only way is to create an online table.

    The flow steps are as follows:

    1\ After the email arrives in your mailbox, flow is triggered.

    2\ Check the data in the table.

    (1) If the subject does not exist in the table, create a new record in the table to save the subject and forward this message.

    (2) If the subject exists in the table, do nothing and flow exits.

     

    Hope it makes sense.

     

    Best Regards,

    Wearsky

  • chingwen Profile Picture
    chingwen 6 on at
    Re: forward only the first email with the same subject

    The only difference will be the time received of the email.  

  • Re: forward only the first email with the same subject

    Hi @chingwen ,

     

    Could you provide the difference between these emails with the same subject?

     

    Best Regards,

    Wearsky

  • chingwen Profile Picture
    chingwen 6 on at
    Re: forward only the first email with the same subject

    Hi Wearsky,

     

    Thanks for taking the time! Could you help provide more suggestions on how the flow should be set up? 

    Currently I get multiple emails with the same subject and manually forwards the first one out to vendor.

     

    I really appreciate the time as I am new to power platform and am grateful for pointers. 

  • Verified answer
    Re: forward only the first email with the same subject

    Hi @chingwen ,

     

    I suggest you add a number column to the table.

    After creating the column, you can set the trigger condition so that if the number column's value is equal to 1, the flow will not be triggered.

    vxiaochenmsft_1-1685934055018.png

    vxiaochenmsft_2-1685934102412.png

     

    First modify (don't set number value, leave it blank ) - send email

    Second internal modify (set the number column to 1) -will not send email

    ....

     

    Best Regards,

    Wearsky

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard