cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Get Attachment Content from Microsoft Teams Message

I try to make a flow from a Message Received from Teams. First of all, from a third party, i send a webhook to microsoft Teams Channel. From this one, each time i receive a channel message, i want to get the original informations from the webhook to make a CSV files. From now, i can't catch the Attachment Content, it seems impossible. Here what i have from now :

 

This is the webhook i receive in my channel :

Here is the webhook i receive in my Teams ChannelHere is the webhook i receive in my Teams Channel

 

Here when i can get the information of my attachment content :

 

The first part where i can see where is my attachment contentThe first part where i can see where is my attachment content

Here when i try to catch the informations to be able to make CSV file (Note, in compose it never propose me any array) :

 

Now trying to get the attachment content and make a csv file or send it by emailNow trying to get the attachment content and make a csv file or send it by email

Exemple of email i received :

 

Example of email i receivedExample of email i received

 Any ideas can be helpful ?

 

Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Get Attachment Content from Microsoft Teams Message

 

Hi @cjenkins ,

 

If you want to get content and create a file, you can refer to the following method.

26.PNG27.PNG

Expression reference:

triggerBody()?['attachments'][0]['content']

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
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

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Get Attachment Content from Microsoft Teams Message

 

Hi @cjenkins ,

 

If you want to get content and create a file, you can refer to the following method.

26.PNG27.PNG

Expression reference:

triggerBody()?['attachments'][0]['content']

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
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

Highlighted
New Member

Re: Get Attachment Content from Microsoft Teams Message

Hello, i'm stuck here with the same or similar problem, perhaps someone can help:

 

Goal: Send a email to a (dedicated) teams channel and create a task in planner including the attachments.

 
 

image.png

File are created with the correct filenames but with 0 bytes.  Same with 'content' instead of 'ContentBytes' property.

Any ideas.

Thank you for your help!

Christian

 

 

Highlighted
Regular Visitor

Re: Get Attachment Content from Microsoft Teams Message

This thread has given me a dim light at the end of the tunnel but I just can't seem to get any closer to what I'm trying to achieve.  

 

In the same vein as this solution, I'm looking to email message content from teams, including attachments, but for my requirement  it's based on a selected message.  The trouble is, when you chose this as the trigger, you don't get the option for message attachments.  Unfortunately I don't have enough of an understanding of the data expressions to know whether it's possible to use any of the functions to manually do this.  

 

UPDATE:

 

I've gotten so close with this, but have started a separate thread.  Follow it here - https://powerusers.microsoft.com/t5/Building-Flows/Get-Attachment-Content-from-Selected-Microsoft-Te... 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,840)