Let’s build something real. We’re going to automate a simple but genuinely useful task: opening a website, pulling today’s date, and saving it to a text file. It’s a beginner-friendly flow that introduces all the core concepts.
Step 1: Create a New Flow
Click + New Flow from the home screen. Give it a name — something like “Daily Date Logger.” Click Create.
The designer opens. You’re now looking at an empty canvas.
Step 2: Get the Current Date and Time
In the Actions panel on the left, search for “Get current date and time.”
Drag that action onto the canvas. A configuration window pops up. Choose your format preference — for this example, leave the defaults. Click Save.
This action creates a variable called %CurrentDateTime% that holds today’s date and time. Variables in Power Automate Desktop are wrapped in percent signs—you’ll see this everywhere.
Step 3: Convert the Date to Text
We want to write this date to a file, so we need it as clean text.
Search for “Convert datetime to text” in the actions panel. Drag it onto the canvas below the previous step.
In the configuration:
- Set Datetime to convert to %CurrentDateTime%
- Choose your preferred format (e.g., MM/dd/yyyy)
This creates a new variable: %FormattedDateTime%.
Step 4: Write to a Text File
Search for “Write text to file.”
Configure it:
- File path: Choose where you want the file saved, e.g., C:\Users\YourName\Desktop\date_log.txt
- Text to write: %FormattedDateTime%
- Append new line: Toggle this on so every time the flow runs, it adds a new line instead of overwriting
Click Save.
Step 5: Run It
Hit the Run button at the top of the designer (the play icon).
Watch the actions highlight as they execute—green for success, red for errors. If everything works, open your desktop and you’ll find date_log.txt with today’s date in it.
That’s your first flow. Tiny, but real.