cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
juracana
Level: Powered On

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 Team
Community Support Team

Re: Rename 1 email attachment as other attached item in message

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 Team
Community Support Team

Re: Rename 1 email attachment as other attached item in message

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
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,834)