How to log a message in Microsoft Power Automate Desktop if you do not have a premium subscription?
💡This article explains how to implement a simple logging mechanism by combining standard actions to write timestamped log entries to a text file.
Problem Description
In Microsoft Power Automate Desktop, premium users can conveniently use the Log message action to log a custom text message with a severity level of Info, Warning or Error in the flow run action details. However, if you are using the free version, this action is not available.
This article explains how to implement a simple logging mechanism by combining standard actions to write timestamped log entries to a text file.
Why is logging important?
Logging is a best practice when building automation flows. It helps you to:
Debug errors—When something goes wrong, log files provide a trace of what actions were performed and where the issue occurred.
Monitor flow execution—You can verify that flows are running as expected, and check how often they run.
Maintain audit trail—Logs can provide an audit trail for compliance and tracking purposes.
Troubleshoot production issues—In production environments, logs are often the only way to understand issues after they occur.
By having proper logs, you save time on troubleshooting and improve the reliability and robustness of your automations.
Solution
1️⃣ Create a subflow Write_To_Log
In this subflow, we will use three standard actions:
Get current date and time
Convert datetime to text
Note: Feel free to change the format of the datetime under Custom Format.
Write text to file

Note: Remember to define the variable %FilePath_Logs% as the path to your log file, e.g., C:\Logs\MyLog.txt
2️⃣ Call the subflow
Wherever you need to log a message, do the following:
Set variable
Note: You can replace the value with any log message you want.
Run subflow
Additional Information
Last updated on: 5 Jun 2025
Tested version(s): 2.55.158.25087
Prerequisites: None
Dependencies: None
Known issues: None
