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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to create a file n...
Power Automate
Answered

How to create a file named with today's date and drop yesterday file to another file

(0) ShareShare
ReportReport
Posted on by 17

Hello everyone, it is my first time use PowerAutomate, and I want to create a file named with today's date,like 20221220 this kind of format,and drop yesterday created file to another file, I named it "expired file”, Thank you

I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @RickTu 

    A few questions:

    • Where is the file content coming from?
    • Where are the files stored?
    • You want to name the old file "expired file"?  If so, should the previous file with that name be deleted?

     

  • RickTu Profile Picture
    17 on at

    OK, Thank you for your attention, Sorry I mistake file with folder,  and I correct my discription on the next sentence.

    1. I just create a blank folder, because I have lots of PDF file everyday, I don't want to mess these PDF up, so need to creat a daily folder

    2.with the increase of daily folder, my desktop messed up, so i want to store the out of date folder in a larger folder, which named with expired folder

    Although it is a small thing, I am curious about the performance of PowerAutomate, and I also glad to try and product of MicroSoft, I am good at MS office and VB, but an app like PowerAutomate is strange for me, So I hope anyone can help me give me a real example to show me something, and lastly, Thank your for your help

  • RickTu Profile Picture
    17 on at

    Sorry my english is not well, maybe a screenshot will be clear than my sentence,drag yesterday folder to "expired file" and create a new folder named 20221221

    RickTu_0-1671553945812.pngRickTu_1-1671553975714.png

     

  • RickTu Profile Picture
    17 on at

    I seem like know how to deal with it, but there is still a question that PowerAutomate is unable to give me the date of workday

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @RickTu 

    Are you creating a cloud Flow or a desktop flow?

     

  • RickTu Profile Picture
    17 on at

    desktop, and I finally know how to describe the location of file and transfer paramount, but I have got the currentdatetime and want to know to get "workdaydatetime"

  • RickTu Profile Picture
    17 on at

    I see a example, which use if saturday and sunday to judge workday and non workday, i have a try

  • RickTu Profile Picture
    17 on at

    Thank for your help, I make it step by step! which is very excited

  • RickTu Profile Picture
    17 on at

    I use official example about how to get the last workday, and test it, it really flow like water smoothly

    RickTu_0-1671568238752.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 190

Last 30 days Overall leaderboard