top of page

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:


  1. Get current date and time


  2. Convert datetime to text


    Note: Feel free to change the format of the datetime under Custom Format.


  3. 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:


  1. Set variable

    Note: You can replace the value with any log message you want.


  2. Run subflow


Additional Information


  • Last updated on: 5 Jun 2025

  • Tested version(s): 2.55.158.25087

  • Prerequisites: None

  • Dependencies: None

  • Known issues: None

Start automation journey CTA background - opt.jpg

💡 Need Expert Help?

If you're facing technical issues or need expert advice and support, we're here to help.

Robotic Process Automation Singapore

CFB Bots is a leading technology service provider in the fast-growing field of Agentic AI and Robotic Process Automation. We partner with large enterprises in their Digital Transformation journey and help them and their employees thrive in the Future of Work.

NAVIGATE
CONTACT US
STAY CONNECTED

Singapore

CFB Bots Pte Ltd

Registration No.: 201705263H

77 High Street

#05-09, High Street Plaza

Singapore 179433

T: +65 6909 2099

E: enquiries@cfb-bots.com

Malaysia

CFB Bots Sdn Bhd

Registration No.: 202401045826 (1591672-X)

Suite: 33-01, 33rd Floor

Menara Keck Seng

203 Jalan Bukit Bintang

55100 Kuala Lumpur

T: +60 39 388 0352

E: my@cfb-bots.com

Australia

T: +61 2 8880 5998

E: au@cfb-bots.com

Join our mailing list to get the latest insights on automation

  • LinkedIn Social Icon
  • Facebook Social Icon
  • Twitter Social Icon
  • Instagram Social Icon
  • YouTube Social  Icon
TS Master Logo.png

© 2017-2025 CFB Bots Pte Ltd. All Rights Reserved. Tel: (65) 6909 2099 | Email: enquiries@cfb-bots.com | Privacy Policy | Terms of Use

bottom of page