Logs a message in the Workflow Studio log table sys_flow_log.

Roles and availability

Available as a Workflow Studio ServiceNow core action. Users with the flow_designer or admin role can add an action to a flow and define configuration details.

You can view the logs in the flow execution details. To learn more, see Flow execution details and Workflow Studio data.

Fields

Field Description
Log level Level of importance of the log message.
  • Error
  • Warn
  • Info
Log message Message to display in the Flow log [sys_flow_log] table. Enter text or drag data pills into the field.
Note: The Workflow Studio design environment only supports entering 255 characters of text for a log message. The length limitation only applies to text entered directly into the input. Data pill values can exceed 255 characters in length. You can log values greater than 255 characters long by using either a data pill value or calling the GlideSystem - log(String message, String source) method from a script.

General guidelines

Test your flow to ensure it generates useful logging information
Test your flow and review its execution details. Make sure that the log action stores useful data.
Use data pills to log dynamic data
Add one or more data pills to your Log action to store dynamically generated values. Make sure that the data pills come from actions and flow logic that have run before the Log action.