cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Americo2018
Regular Visitor

Email attachments

Hi,

 

I have created a Floe that save the attachements in a email to a library in SharePoint. 

I've used the standard template to create the flow. 

 

What I noted is that the if the email has a image in the signatur this image is also saved to the library, it seems like Flow think that image is also a attached file. 

How can I filter the files that should be sent to the library, I am only interested in office documents and PDF?

 

Best regards,

Americo Perez

2 REPLIES 2
gamoraes
Memorable Member
Memorable Member

Hi @Anonymous

 

You can use a foreach and verify if attachaments name ends with .pdf or .docx, like image above:Flow2.png

 

 

to use for word(.docx) or (.pdf) you need to put this code in your condiction(in advanced mode):

 

@or(contains(items('Apply_to_each')?['Name'], '.docx'),contains(items('Apply_to_each')?['Name'], '.pdf'))

Best Regards, 

 

Gustavo Moraes


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!


v-xida-msft
Community Support
Community Support

Hi @Americo2018,

 

Do you want to save attachment files to a SharePoint library?

I agree to @gamoraes’s thought. I have made a test on my side and the flow’s configuration as below:8.JPG

The flow works successfully as below:9.JPG

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Users online (2,458)