Skip to main content
Community site session details

Community site session details

Session Id : Jvo9ZRacDAnaNyymnPdL6A
Power Automate - Building Flows
Answered

Saving attachments from an email file on Sharepoint

Like (0) ShareShare
ReportReport
Posted on 11 Jun 2019 07:37:16 by 20
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!
  • ManishHiraServi Profile Picture
    13 on 03 Sep 2021 at 07:06:27
    Re: Saving attachments from an email file on Sharepoint

    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?

     

  • joe-sai Profile Picture
    18 on 19 May 2021 at 19:40:54
    Re: Saving attachments from an email file on Sharepoint

    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

  • Community Power Platform Member Profile Picture
    on 16 Feb 2021 at 15:07:10
    Re: Saving attachments from an email file on Sharepoint

    @ AguilarTech

     

    Did you end up finding a solution to this?

  • AguilarTech Profile Picture
    10 on 20 Apr 2020 at 09:06:41
    Re: Saving attachments from an email file on Sharepoint

    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?

  • Community Power Platform Member Profile Picture
    on 14 Apr 2020 at 13:10:23
    Re: Saving attachments from an email file on Sharepoint

    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.

     

  • Community Power Platform Member Profile Picture
    on 08 Apr 2020 at 10:50:31
    Moving the email attachments sent to the teams channel from the email folder created in Sharepoint to another folder in Sharepoint using power automate

    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.

  • KirstyClark Profile Picture
    20 on 12 Jun 2019 at 22:36:40
    Re: Saving attachments from an email file on Sharepoint

    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

  • Verified answer
    v-yamao-msft Profile Picture
    on 12 Jun 2019 at 02:01:05
    Re: Saving attachments from an email file on Sharepoint

    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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete