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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,543)