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

 

 

View solution in original post

Thanks, worked perfectly 🙂

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (1,927)