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

Power automate - save email attachment to sharepoint but exclude specific email address

Hi all,

 

I need to build a flow for below purpose:

 

1) When email come in to my mail box (with specific email subject), save the attachment and create file to SharePoint.

2) For email with specific recipient (To), ie: if "To" contain you_2001hk@xxx.com or GabrielSulistio@xxx.com.  

     I don't need to save the attachment and only need a email notification. 

 

I have created below flow and it can create file to SharePoint, but the 2) condition is not work.

 

May I know how can I achieve it? Thanks.

 

chiu2003_0-1637293016529.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-chenzhi
Community Support
Community Support

Hi @chiu2003 ,

 

Do you want to check whether the specified email is contained in To?

Could you please tell me whether to create file when to contains both special and non-special emails?

If create file in this case, your method is feasible.

If not, I have a test for your reference, please try the following workaround.

vchenzhi_0-1637563346685.png

 

 

Best Regards,

Zhi Chen

View solution in original post

3 REPLIES 3
v-chenzhi
Community Support
Community Support

Hi @chiu2003 ,

 

Do you want to check whether the specified email is contained in To?

Could you please tell me whether to create file when to contains both special and non-special emails?

If create file in this case, your method is feasible.

If not, I have a test for your reference, please try the following workaround.

vchenzhi_0-1637563346685.png

 

 

Best Regards,

Zhi Chen

View solution in original post

@v-chenzhi 

 

Thanks.

 

As email is coming multiple times with different data, but with the same email subject (no different email subject due to system limitation)

 

What I have done is sending different data to different user, that why I need to use "To" to decide which email data to create.

 

For specific user account is included in "To", I need to ignore that email and just sending an email notification.

@v-chenzhi 

 

Thanks. It is working well now.

 

But it seems the speed is a little bit slow.

 

The email come in around 4:05pm, but I can receive the email notification around 4:20PM.

 

Anyways, thanks for your help

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

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