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 / How to add text or ren...
Power Automate
Unanswered

How to add text or rename an attachment from outlook

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

 

I have created a flow that can download attachments from outlook and rename files with the sender's email address. Is there any way to add a certain text in a filename so that I can identify who sent the file easily?

img_2021-03-25_002.jpg

 

I have the same question (0)
  • fraenK Profile Picture
    2,125 on at

    Attachments represents a list, so you would need to loop through the list to rename every individual file or move it to a folder named by the sender

    Datatype properties - Power Automate | Microsoft Docs

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I used CurrentItem.Subject.Trimmed variable to include email subject in the filename and eceived this error "Folder doesn't exist." But it worked without the variable. Clueless.

    img_2021-03-25_003.jpg

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I used CurrentItem.Subject.Trimmed variable to include email subject in the filename and received this error "Folder doesn't exist." But it worked without the variable. Clueless.

     

    img_2021-03-25_003.jpg

     

  • fraenK Profile Picture
    2,125 on at

    As said %CurrentItem.Attachments% is a list of zero to many attachments. You need to loop though that list with for each to get the individual files.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard