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
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,302)