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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

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 (89,223)