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

Trying to check if an e-mail attachment is already in a folder. If yes, rename it.

Hello,

I am trying to add e-mail attachments to a share point folder. It's a budget template from 250 managers. There is a very good chance that at least two managers will not rename the template (despite despite the instructions), and putting the files in the folder will delete/rewrite one with the same name. 

 

1. I'm trying to  check if the file name exists in the folder, then rename it something unique if it does. It keeps breaking at the "Condition" part in the screenshot below.

 

2. If the file exists how do I rename it something unique, or just add "_dupliacte" and also ensure that this won't delete/rewrite an already renamed duplicate?

 

Annotation 2020-05-01 183304.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChristianAbata
Community Champion
Community Champion

hi @Drdunne  please follow my example

1.PNG2.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

2 REPLIES 2
ChristianAbata
Community Champion
Community Champion

hi @Drdunne  please follow my example

1.PNG2.PNG



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

This helped! I actually ended up using the "Received Time" as part of the name to make it a bit more unique as well. Thank you. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,512)