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
Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,415)