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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / retrieve eml file in t...
Power Automate
Suggested Answer

retrieve eml file in teams channel thread

(1) ShareShare
ReportReport
Posted on by 133
Dear all,
 
I can't retrieve the last email content send to a teams thread
 
 
I suppose do not properly set the site adress and the file identifier
 
does anyone have an idea?
 
many thanks 
 
I have the same question (0)
  • Suggested answer
    Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    You can use a Get File Content Using Path action and use the contentUrl field value of the message details. With a couple of expressions (with split, take, skip and join) you can format the right values for the Site Address and File Path fields.
     
    Below is an example of that approach for the first attachment found in the message details.
     
    1. Site Address (which uses a take)
    join(take(split(first(body('Get_message_details')['attachments'])['contentUrl'], '/'), 5), '/')
    2. File Path (which uses a skip)
    join(skip(split(first(body('Get_message_details')['attachments'])['contentUrl'], '/'), 5), '/')




     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard