What is the Log Output Action?
The Log Output action in Shopify Flow is a new task designed to display variable values in the workflow run log. Unlike actions that take additional steps, such as sending internal emails, the Log Output action simply logs information for review.
Why Use the Log Output Action?
This action is ideal for troubleshooting and monitoring workflows. By logging variable values, you can gain insights into your data without altering the workflow's behavior.
- Monitor the status of products, orders, and other entities in real-time.
- Debug workflows by checking for unexpected values or gaps in your logic.
- Easily inspect what data is being passed between workflow steps.
How Does It Work?
Here’s how you can use the Log Output action effectively in Shopify Flow:
- Insert the action into your workflow as a step where you want to log precise values.
- Use liquid variables, such as
{{ product.status }}, to display specific data. - The output is added to the workflow run log for your review.
Example Use Case
For instance, if you want to visualize the status of a product, you can incorporate {{ product.status }} into the workflow. When the workflow runs, you might see an output like: Active. This allows you to confirm whether the data aligns with your expectations.
What You Should Know
- The action displays raw data without trying to interpret it. For example,
{{ customer.firstName }}logs as John, not <John>. - Spaces and white spaces are logged exactly as they appear. You can use this to identify any unexpected blanks by selecting the text in the run log.
Overall, the Log Output action is a simple yet powerful tool to enhance your Shopify Flow workflows.