Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Forward an email with attached invoices based on multiple conditions

(0) ShareShare
ReportReport
Posted on by 4

The scenario is that if an email arrives, I want my flow to check the content and sender of the email.

If the email has an attachment, has the word ‘invoice’ in the body of the email or is from a specific sender, I want to forward the email.

I’m having trouble getting my conditions to work. Is there anyone who can give me some pointers?

 

MartinFogelberg_1-1637138336584.png

 

  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Forward an email with attached invoices based on multiple conditions

    Hi @MartinFogelberg 

    Has your problem been solved?

    If you want to determine whether the email body contains a certain content, you first need to convert the body to text format.

    I set up a flow, you can refer to the screenshots below.

    vLilyWmsft_1-1637555591161.png

    If you add multiple judgment conditions, you can choose Add row directly.

    vLilyWmsft_2-1637555825012.pngvLilyWmsft_0-1637555573748.png

    If you want to Add group condition, please change 'And' to 'Or'.

    vLilyWmsft_4-1637556299767.png

    Please refer to the screenshots above and try again.

     

    Hope the content above may help you.

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • VictorIvanidze Profile Picture
    12,480 on at
    Re: Forward an email with attached invoices based on multiple conditions

    Create a temporary variables for each condition and check what's wrong.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492