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

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,310)