cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MartinFogelberg
New Member

Forward an email with attached invoices based on multiple conditions

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
VictorIvanidze
Resident Rockstar
Resident Rockstar

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



Freelance Power Automate developer. $50 per hour.
v-LilyW-msft
Community Support
Community Support

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.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,371)