web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Save a Teams Channel m...
Power Automate
Unanswered

Save a Teams Channel message and attachments into Sharepoint

(1) ShareShare
ReportReport
Posted on by
Hi, 

For 365, a Sharepoint site has a teams channel.
In the time of connectors, whenever an email was sent to that channel from a specific sender. It would appear on the teams chat and then create a folder of the subject name, and save the body of the mail in eml format and any attachments within that folder on Sharepoint.

Now connectors have been stopped, we're forced to use Workflows, but i cannot get it right at all.

I've made a lot of successful workflows, so if an email came through to a normal mailbox, it would then create the folder and save everything inside as needed. But when i amended the settings to be 'if an email is sent to *Teams channel email*' nothing happened and it would fail. Test would never tell me why.

Another workflow would be that if a message is posted in the teams chanel, it does as needed. And i can get it to create the folder and save the body of the message within. But i cannot get attachments to save at all.

Please can someone advise what the workflow needs to be to get attachments to save, and do i need to do it as 'when an email comes in' or 'when a teams chat is posted'
Categories:
I have the same question (0)
  • Suggested answer
    Ravi-Prajapati Profile Picture
    416 Super User 2025 Season 2 on at

    You have two approaches, but each has limitations when working with Teams channel emails and attachments. Let's break it down and find the best solution.


    Approach 1: Triggering from Emails Sent to the Teams Channel

    This would be the ideal approach, but Teams channel emails are not normal Exchange mailboxes. They are processed internally by Teams, and Power Automate cannot directly access them. That's why your workflow fails when using the "When an email arrives (V3)" trigger.

    Workaround: Forward Emails to a Shared Mailbox

    1. Create a shared mailbox in Exchange.
    2. Set up email forwarding for the Teams channel email to this shared mailbox.
    3. Use Power Automate's "When a new email arrives in a shared mailbox (V2)" trigger instead.
    4. Extract subject, body, and attachments, then create a folder in SharePoint.

    Approach 2: Triggering from Teams Chat Messages

    Using "When a message is posted in a channel" trigger does not capture attachments because Teams does not treat email attachments as part of the chat message.

    Workaround: Manually Extract Attachments

    If you want to process attachments from messages posted in a Teams channel (not emails), you need to:

    1. Identify the source link of the attachment (Teams stores it in SharePoint).
    2. Use the SharePoint connector to retrieve the file and copy it to the desired location.

    Steps for Approach 2 Workflow:

    1. Trigger: "When a message is posted in a channel" (Teams connector).
    2. Get the message content and look for attachment links (they will be stored in SharePoint).
    3. Extract the file URL.
    4. Copy the file to the desired SharePoint location.

    Best Approach for You

    Since you specifically want to process emails sent to Teams with attachments, the shared mailbox forwarding method (Approach 1) is your best bet. This ensures:

    • The email is captured fully (body, subject, attachments).
    • Attachments are saved properly in SharePoint.
    • You have full control over processing emails without relying on Teams' behavior.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard