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

Rename 1 email attachment as other attached item in message

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @juracana ,

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @juracana ,

 

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (5,507)