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 email attachm...
Power Automate
Answered

retrieve email attachment and rename file

(0) ShareShare
ReportReport
Posted on by 22

Hi, I'm trying to retrieve an email attachment and rename the file, but I'm getting stuck trying to rename. The ending of the file name changes daily. It will save fine in the folder but nothing happens to the name. Any assistance is greatly appreciated.

 

marksben32_0-1713819368429.png

marksben32_1-1713819491172.png

marksben32_2-1713819563414.png

 

 

 

I have the same question (0)
  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Try %RetreivedEmails[0].Attachments[0]%

     

    Retreived Emails is a list, so [0] is the first email.

    .Attachements is a property of an email which I believe is also a list, so [0] is the first attachment...if it doesn't work, try taking off the second [0].

     

    Good luck!

  • marksben32 Profile Picture
    22 on at

    That worked perfectly, thanks so much!

     

    If I want to do the same thing for a different email would I have to create a whole new flow or could I just continue in the same flow?

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    If you can pull both emails in to RetrievedEmails, then you can say:

    for each %retrievedemails%

       %CurrentItem.Attachments% is now per email. 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard