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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When a new email arriv...
Power Automate
Unanswered

When a new email arrives, Get Attachement from Outlook 365 and Post Content to Teams Chat

(0) ShareShare
ReportReport
Posted on by 10

Hello. Please, I need help to properly set the Get Attachment from Outlook 365.

 

I'm trying to to automate a post on MS Teams every time I receive an e-mail with attachments. I want to post those attachment's contents into a MS Teams chat.

 

The automation is failing when it tries to Get the Attachments.

 

Thanks in advance.

 

This is where the error occurs in the flow:

 

Screenshot 2022-08-10 at 17-19-33 Run History Power Automate.png

 

 

This is my complete flow:

 

Screenshot 2022-08-10 at 17-20-36 Edit your flow Power Automate.pngScreenshot 2022-08-10 at 17-20-54 Edit your flow Power Automate.png

 

Screenshot 2022-08-10 at 17-21-17 Edit your flow Power Automate.png

Screenshot 2022-08-10 at 17-21-28 Edit your flow Power Automate.png

Categories:
I have the same question (0)
  • Verified answer
    mbx Profile Picture
    10 on at
    Re: When a new email arrives, Get Attachement from Outlook 365 and Post Content to Teams Chat

    I found a solution. Weird, because I already tried such configuration for Get Attachment.

    So, I created a new flow from scratch, like these and now I "print" the attachment contents into a Teams chat:

     

    mbx_0-1660229109575.png

    mbx_1-1660229142634.png 

    The Attachment Id param is:

    mbx_0-1660229466800.png

     

    mbx_2-1660229255748.png

    In this step I used the following expression to write the file content as a string

     

    decodeBase64(outputs('Get_Attachment_(V2)')?['body/contentBytes'])

     

    mbx_3-1660229270343.png

     

     

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard