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 / retrieve email attachm...
Power Automate
Unanswered

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

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard