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

Do not include images inserted in the body of the email when saving attachments to SharePoint

Hi,
I'm about do setup a basic flow that's pretty much written already.

However when the files are stored in SharePoint the images of the email body (like commercial banners etc) also gets stored.

How do I avoid this to happen. I basically only want the actual attachments like .pdf .csv .xlsx to be saved in SharePoint.

 

This is how the flow looks at the moment.

 

xparicon_0-1604061274742.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PURNA429
Resolver II
Resolver II

Hi @xparicon ,

 

You can add one more condition inside your apply to each of attachments section to check the file name ends with specific extension like ".pdf, .docx, .txt" etc.  

Before your create file action, add a if else condition to check . ( Move option is not working, so To do this, remove the create file action, add this if else action, then in Yes block add your create file action )

 

AttachmentExtenstion.png

 

Note : If your body and attachment contains same extension ( say for example .png ), this wont fit.

 

If I answered your question, please mark this question as answered and if you liked my response, please give a thumbs up .

 

 

Thanks

Purna

Blog

 

 

View solution in original post

2 REPLIES 2
PURNA429
Resolver II
Resolver II

Hi @xparicon ,

 

You can add one more condition inside your apply to each of attachments section to check the file name ends with specific extension like ".pdf, .docx, .txt" etc.  

Before your create file action, add a if else condition to check . ( Move option is not working, so To do this, remove the create file action, add this if else action, then in Yes block add your create file action )

 

AttachmentExtenstion.png

 

Note : If your body and attachment contains same extension ( say for example .png ), this wont fit.

 

If I answered your question, please mark this question as answered and if you liked my response, please give a thumbs up .

 

 

Thanks

Purna

Blog

 

 

Thanks, worked perfectly 🙂

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,534)