cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PaulaMcC
Frequent Visitor

Renaming an attachment when sending an email

I have a flow where an email is sent with an attachment once a form response is submitted.

The flow is working fine however when the email arrives, the attachment name is a sting of symbols etc. whereas I'd like it to be a simple file name as it will be sent external to our organisation\

 

I have attached screenshots of what the file name looks like when the email is received & the flow, any help would be appreciated!

Thanks

FileName_PowerAutomate (3).pngFileName_PowerAutomate (2).png

5 REPLIES 5
tom_riha
Super User
Super User

Hello @PaulaMcC ,

you shouldn't use 'File Content' as the attachment name, that's why it contains the strange characters. Try to use 'File Name' or something like that.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

@tom_riha thanks, that's what I thought but it's not an option?

It is an option, but when you use 'File content' it'll show the whole file content in the file name and it'll look as it does in your email.

Search for something like 'Attachment name' or any other '... name' or define your own file name.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

I've attached a screenshot of my flow & the options I have. I'm assuming I need to use a different action to "Get File Content" but everything I've tried to use instead points me to a SharePoint list whereas I just want to attach a standard PDF which is saved in a folder of a SharePoint Group.

 

FileName_PowerAutomate (5).png

FileName_PowerAutomate (4).png

You might need another action: 'Get file properties' to get the file name.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,650)