Skip to main content

Notifications

Community site session details

Community site session details

Session Id : OdM7qswcrYiNNPf0HRrd8S
Power Automate - General Discussion
Answered

forward only the first email with the same subject

Like (0) ShareShare
ReportReport
Posted on 4 Jun 2023 22:59:40 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.

  • v-xiaochen-msft Profile Picture
    on 05 Jun 2023 at 05:32:16
    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
    6 on 05 Jun 2023 at 05:25:37
    Re: forward only the first email with the same subject

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

  • v-xiaochen-msft Profile Picture
    on 05 Jun 2023 at 05:11:03
    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
    6 on 05 Jun 2023 at 05:04:22
    Re: forward only the first email with the same subject

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

  • v-xiaochen-msft Profile Picture
    on 05 Jun 2023 at 05:01:06
    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
    6 on 05 Jun 2023 at 03:34:32
    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
    v-xiaochen-msft Profile Picture
    on 05 Jun 2023 at 03:02:33
    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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,440 Most Valuable Professional

Leaderboard
Loading started