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

Rename an attachment file received by email before saving it

Hi everyone,

 

I tried to make a flow with Dropbox : "save email attachments to a dropbox folder"

The standard flow is working great but, if I have the same name of the file attached, it is overwriting on the dropbox folder...

Could you please tell me how to remane an attachment file (with the date/time added for example) ?

 

Thanks

Fred

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft telu
Microsoft

Re: Rename an attachment file received by email before saving it

Hi frdrcjrdn,

 

I think you can use subject+attachmentName or any other name combination as the dropbox file name to resolve the name conflict. Hope it works

 

Thanks

View solution in original post

5 REPLIES 5
Microsoft telu
Microsoft

Re: Rename an attachment file received by email before saving it

Hi frdrcjrdn,

 

I think you can use subject+attachmentName or any other name combination as the dropbox file name to resolve the name conflict. Hope it works

 

Thanks

View solution in original post

frdrcjrdn
Level: Powered On

Re: Rename an attachment file received by email before saving it

I can't put the object + the attachment name.

It told me (in red) that it is impossible because of the foreaech instruction...

 

So I put the "subject".pdf and I get my attachment renamed with the email subject plus the PDF extension.

But my problem, now, is when I have two attachments in the email, I get an error with the flow because, of course, there is a problem of overwriting files...

 

I get stucked !

 

I even try to put a condition on the content-type of the attachment (equal to ".pdf") but I get an error of the flow...

 

Did someone has a flow which is working to save only a PDF attachment of an email recevied into a dropbox foler ?

 

Thanks

Fred

krizz
Level: Power Up

Re: Rename an attachment file received by email before saving it

Hi, same issue here... adding a timestamp to the filename would be a solution, but as far as I now it's not possible for the moment. 

 

Cheers 

Kris

Community Support Team
Community Support Team

Re: Rename an attachment file received by email before saving it

Hi @frdrcjrdn and @krizz,

 

Please take a look at the thread below, see if the workaround works for your situation:

Modify Dynamic Content Before Use in Flow

If you have any further questions, please post back.

Regards

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Dutch77
Level: Power Up

Re: Rename an attachment file received by email before saving it

Hi,

 

I'm looking for the same solution... i have many bills coming in via email for different properties. In the body of the email it has supply address, and ideally i would like this captured somewhere so i can either name the file this way, or store it in the correct folder commencing with email date YYYY-MM-DD Supply address 1 - Elec

 

It will save me lots of time... and manual filing of these bills... seriously... if someone could create this archive box for all bills etc, they would be trillionaire...

 

Cheers

 

 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

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 Solution Authors
Top Kudoed Authors
Users online (4,987)