cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
No1UCFfan
Level: Power Up

Saving specific attachments to OneDrive

I have a succesful flow set up where any attachment that hits the inbox, saves the attachements to OneDrive. No problem. The issue I'm trying to work through now is if additional files are included in the email, picture files from a signature, or any other random files people add to their email are also saved to OneDrive. I want to ONLY get PDF's from the emails and nothing else. I've set up a condition that looks at attachment name and contains .pdf, but the test email with a PDF, JPG and xlsx files keep saving all three file types, it seems my condition is being ignored. Any suggestions? Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Saving specific attachments to OneDrive

Hi @No1UCFfan,

 

I see your flow have two "Create file" actions, I afraid that cause all attachment would be created in the Onedrive.

 

Please delete the "Create file" action under the Condition, and the screenshot of the flow should as below:

Capture.PNG

 

Best regards,

Alice

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Saving specific attachments to OneDrive

Hi @No1UCFfan,

 

I see your flow have two "Create file" actions, I afraid that cause all attachment would be created in the Onedrive.

 

Please delete the "Create file" action under the Condition, and the screenshot of the flow should as below:

Capture.PNG

 

Best regards,

Alice

View solution in original post

No1UCFfan
Level: Power Up

Re: Saving specific attachments to OneDrive

Alice,

 

That did it...silly mistakes are fun. Thanks! 

NHes
Level: Powered On

Re: Saving specific attachments to OneDrive

Even though I've made no mistakes (I think) files still get wrongly uploaded... see post in https://powerusers.microsoft.com/t5/Building-Flows/How-to-save-only-certain-attachments-from-outlook...

Helpful resources

Announcements
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 (6,912)