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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,653)