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

Saving attachments from an email file on Sharepoint

Hi all,
We currently use MS Teams and MS Flow to store files. We do this by emailing a file to an MS Teams channel, MS Teams then saves a copy of the email and its attachment to SharePoint. We then use MS Flow to move the attachments to another SharePoint folder for processing.

This worked well but we have a new scenario where a system generates an email with attachment. MS Teams seems to recognise the email is not an inbox and so while it saves the email to SharePoint, it doesnt extract the attachments.

So now we need to add a step to open the email, extract the attachments and save them to a location. There are lots of posts of saving attachments from outlook, but instead how can this be done by opening an .eml file from sharepoint?

Thanks!
1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @KirstyClark ,

 

Do you want to open an .eml file from SharePoint then extract its attachment?

 

I am afraid that it is not possible to achieve your scenario. Flow is not able to open an .eml file from SharePoint then to extract its attachments. We could extract email attachments when an email arrives in email box.

 

You mentioned that “system generates an email with attachment”, will not the email be send to Inbox?

 

What kind of email it is? Why MS teams cannot recognize the email in Inbox?

 

Please share more details on this part.

 

Best regards,

Mabel

 

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

View solution in original post

8 REPLIES 8
v-yamao-msft
Community Support
Community Support

Hi @KirstyClark ,

 

Do you want to open an .eml file from SharePoint then extract its attachment?

 

I am afraid that it is not possible to achieve your scenario. Flow is not able to open an .eml file from SharePoint then to extract its attachments. We could extract email attachments when an email arrives in email box.

 

You mentioned that “system generates an email with attachment”, will not the email be send to Inbox?

 

What kind of email it is? Why MS teams cannot recognize the email in Inbox?

 

Please share more details on this part.

 

Best regards,

Mabel

 

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

Hi Mabel,

 

Thanks for clarrifying.  The email is sent to a Microsoft Team's channel, not to a mailbox.  If it is possible to reference the MS Teams Channel as if it's an inbox that may work, but I don't understand that process well enough.

 

The issue we are having is that normally when an email is sent to the MS Teams channel, MS Teams automatically saves the attachments to sharepoint.  The email address that is sending the email though is not a true mailbox.  I cannot explain this technically, but my technical team at work have advised that it is most likely that MS Teams recognises that the email is coming from an email address that is not a full inbox.  It is just an email used for system generated emails.  MS Teams probably thinks that it is a high security risk and hence doesn't save the attachments separately to the copy of the email. 

 

I have tested sending the identical email from normal work emails and from my gmail and it detaches the attachments and saves them separately.  It only fails to do this from the system generated emails.

 

Cheers

Kirsty

DarylC
New Member

Can anybody step me through this process to have the email attachments only moved automatically from the email messages folder created by teams to another folder in the same Sharepoint site.

DarylC
New Member

Hi Kristy,

Would you be able to share the current flow you have set up that you mention in your post for when MS Teams saves an email and its attachment into Sharepoint and then you have a flow setup to move the attachment only to another folder for processing.

 

I have this exact same issue. 

 

But this is marked as solved and I do not see what the solution was or where it could be. Where you able to solve this?

Anonymous
Not applicable

@ AguilarTech

 

Did you end up finding a solution to this?

I am also having this issue. System generated emails (like from Oracle Fusion) are showing in Teams but the attachment is not. If you download the email from Sharepoint the attachment is there

ManishHiraServi
Advocate I
Advocate I

We have files being sent to an teams email channel - all from the same provider (but different systems). If I open each eml file, they are all HTML formatted emails.

 

But consistently, for one of the emails, the attachment is successfully extracted but for the other two, the Teams platform can't do it. Is due to file size of attachment in the email? The file attachment from the email that is successfully extracted is rather small (<1Mb) but for the other two emails (the attachment sizes is normally over 10Mb  but less than 20Mb)..  perhaps that is a clue?

 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

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.

Users online (4,691)