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

Rename 1 email attachment as other attached item in message

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone, 

 

I have the following problem, I am being able to save attachments in a sharepoint folder (the easy part). However now in the same email are attached 2 files with the following name (examples):

File 1: John Doe - Certificate 

File 2: Summary (the name of this file is always Summary)

I need to save file 2 as "Summary +  File 1 name" so the final result for file 2 is going to be: Summary John Doe Certificate. So In my sharepoint folder I will need to save the following 2 PDF files: 

File 1: John Doe - Certificate

 

File 2: Summary John Doe - Certificate

 

Need your help on this, thank you so much. this is the end of my flow so far>

flow2.PNG

 

flow.PNG

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Please try to rename the attachment name using the following method.

    • Use variables to store File Name of the first file.
    • Determine if Attachment Name starts with Summary, and if so, use concat() function to splicing the file name.

    Expression reference:

    concat('Summary',' ',variables('FirstFileName'))

    Image reference:

    23.PNG24.PNG

    Hope it helps.

     

    Best Regards,

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 62 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 58

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard