cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
juracana
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
v-bacao-msft
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
v-bacao-msft
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
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (66,809)