cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Animoroly
Level: Powered On

Save attachment from email in Sharepoint list without images assignature

Hello,

 

I am trying to insert attachments into a Sharepoint list, from an email but I am facing some problems with it.

If the email has an assignature with images, I will get them all but I only want the files who came as attachments and not the images from the assignature of the email.

 

How can I solve this?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Save attachment from email in Sharepoint list without images assignature

@Animoroly 

 

Does the attachments of your email contain any image files? If not, you can add a condition to check if the attachment is an image and if it is not only then create the attachment in sharepoint. Please see the screenshot below:img.PNG

I have put png in both conditions yuo can change that to jpg, jpeg and png. 

 

Expression:

last(split(items('Apply_to_each_2')?['Name'],'.'))

This splits the file name at . and gets the extension. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

4 REPLIES 4
Super User
Super User

Re: Save attachment from email in Sharepoint list without images assignature

@Animoroly 

 

Does the attachments of your email contain any image files? If not, you can add a condition to check if the attachment is an image and if it is not only then create the attachment in sharepoint. Please see the screenshot below:img.PNG

I have put png in both conditions yuo can change that to jpg, jpeg and png. 

 

Expression:

last(split(items('Apply_to_each_2')?['Name'],'.'))

This splits the file name at . and gets the extension. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

Animoroly
Level: Powered On

Re: Save attachment from email in Sharepoint list without images assignature

Hello @yashag2255 ,

 

I tried that but all the items I get returns me false. They are all png, only one is pdf, but the condition don't work...

Super User
Super User

Re: Save attachment from email in Sharepoint list without images assignature

@Animoroly 

 

You can try using PNG instead of png (I just tried and it worked for me). 

 

Also, you can use the 'Attachment content type' and compare that with image/png to identify an image of png type. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Animoroly
Level: Powered On

Re: Save attachment from email in Sharepoint list without images assignature

@yashag2255 

 

It worked! Thank a lot!

 

 

 

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 40 members 4,382 guests
Please welcome our newest community members: