Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Add date (yyyy-MM-dd) during saving attachment to sharepoint create flow

(1) ShareShare
ReportReport
Posted on by 2
Hi,
 
I am trying to create a workflow to save files from my email to a SharePoint folder but I need to add current date to the workflow.
 
I send daily backup from a different app we use and I want the attachment to save when the email arrives without me having to go in and save them everytime.
 
The attachments are in .xlxs and I am missing a step in my flow. 
 
The file is saving but the format is all wrong. Please see attached and kindly help with suggestion on how to go about it.
  • Suggested answer
    creativeopinion Profile Picture
    10,439 Super User 2025 Season 1 on at
    Add date (yyyy-MM-dd) during saving attachment to sharepoint create flow
    It looks like you are missing the file extension in the File Name field.
     
    You might be interested in this YT Tutorial: Save Email Attachments to SharePoint with Microsoft Power Automate
     
    Power Automate doesn’t have a download attachment from outlook action. In this Power Automate Video tutorial, I’ll show you how to use the Get Attachment (V2) action in combination with the Create File action to get your email attachments onto SharePoint. The Create File action will overwrite any files that already exist with the same name. In this tutorial, I’ll show you how you can append a timestamp to the end of a file name to prevent your file from being overwritten.
    I’ll also show you how to set up your flow so that you can trigger it manually while building it so you don’t need to wait for an email to arrive. At the end of the video I’ll show you how adding trigger conditions to your flow can prevent it from triggering if certain conditions aren’t met. 
     
    Although the final flow uses the When a new email arrives in a shared mailbox (V2) trigger, you can use any of the When a new email arrives triggers for your flow. Adjust this flow to suit your needs!
     
    IN THIS VIDEO:
    ✅ How to Automate Downloading and Uploading Email Attachments to SharePoint
    ✅ How to Use a the Get Email (V2) action
    ✅ How to Use the Get Attachment (V2) action
    ✅ How to Create Attachment Files using the Create File Action
    ✅ How to Prevent the Create File Action from Overwriting a File
    ✅ How to use Split the Filename from its Extension
    ✅ How to Append a Timestamp to a File Name
    ✅ How to use the When a New Email Arrives in a Shared Mailbox (V2) trigger.
    ✅ How to use the Convert Time Zone action
    ✅ How to add Trigger Conditions to your Flow
     
     
    Hope this helps!

    Consider giving me a ❤️ if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492