web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 5rccV2AsYE5p0rpHN0wbJ+
Power Automate - Building Flows
Answered

Save Outlook Attachment with specific file name to OneDrive

Like (0) ShareShare
ReportReport
Posted on 2 Nov 2023 15:45:06 by 34

Hi, I am having trouble creating my first flow that saves Outlook email attachments.  

  • The email has three attachments and I want to save only one
  • The file name (below) is dynamic but the beginning is static
    • SSK_-_3wk_Inventory_Position_305061402515  (the red part is static)

The test result shows that it stops at the conditional statement:

Tmk123_0-1698939424507.png

 

Tmk123_1-1698939490968.png

 

Apply to each detail:

  • Conditional statement tests to see if the file attachment contains "3wk"
  • If it does, create a file in OneDrive and save it with the existing file attachment name
    • If it does not, do nothing.

Tmk123_2-1698939538252.png

 

I am sure this is easy but like I said, this is my first Outlook flow.  Thanks for your help!!

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 03 Nov 2023 at 04:47:44
    Re: Save Outlook Attachment with specific file name to OneDrive

    Hi @Tmk123 

     

    I am glad that it solves your problem. I would request you to mark my previous reply as accepted solution as it will help others in the future.

     

    Thanks

  • Verified answer
    Tmk123 Profile Picture
    34 on 02 Nov 2023 at 17:41:22
    Re: Save Outlook Attachment with specific file name to OneDrive

    You are a genius!  Thank you so much!  That worked.  I removed the extra "apply to each" and ensured that the condition was set to "attachment name" and that worked.  Thanks for helping me create my first flow with Outlook!!

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 02 Nov 2023 at 16:17:19
    Re: Save Outlook Attachment with specific file name to OneDrive

    Hi @Tmk123 

     

    Pls cross check if in condition action, the left side of contains operation should be attachment name & also you don't need "Apply to each 2" action in the "Yes" block. The flow should be like as shown below:

    ManishSolanki_0-1698941791999.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete