Monitoring workflows in Shopify Flow

After a workflow runs, you can monitor its performance and behavior. To review your workflow performance, from the Shopify admin go toApps>Shopify Flow>Run history. TheRun historypage lists all your workflow instances. You can also open a workflow and access runs in theRun historysection.

Workflow status

Workflows can be in the following statuses:

List of possible statuses that a workflow can have and a description of the status
Status Description
Running The workflow is currently running.
Waiting The workflow has reached a wait step and is paused for the duration of that step.
Succeeded with actions The workflow ran successfully, and performed actions.
Succeeded with no actions The workflow ran successfully, but performed no actions.
Has errors The workflow didn't run successfully and has errors.

Finding a workflow run

Considerations for finding a workflow run:

  • If the time zone on your device is different than your store's time zone, then the date and time for a workflow run might be inaccurate. Factor this difference into theTimefilter that you use.
  • In high volume stores, you might need to use a narrow time range and other filters to make it easier to find a specific workflow run.
  • Workflow runs are stored for only 7 days after the run completes.
  • There might be a delay between when a workflow runs and when its results appear on theRun historypage. If the results for a recent workflow aren't available yet, then wait a few minutes and try again.

To find a workflow run, use theTimefilter.

Steps:

  1. On theRun historypage, click theTimefilter in the search toolbar.
  2. In theFromfield, enter a date and time that is equal to the time that the event should have happened. For example, for anOrder createdtrigger, use the time that the order was created. Ensure that you enter the correct AM/PM.
  3. In theTofield, enter a date and time that is 10 minutes after theFromdate and time.
  4. Review the search results. Workflows typically run at exactly the same time as a triggering event or shortly afterwards. Click a result that matches the time and verify that the displayed resource matches the resource that you're looking for, such as the order.

Example of a time filter

Viewing the details for a workflow run

To access detailed information about an individual workflow, click the workflow name.

TheStatussection indicates whether the workflow was completed.

TheActionssection indicates how many actions in the workflow ran successfully. For the full list of actions and whether they were taken, clickX actions succeeded.

TheRun detailssection displays a preview of the workflow.

  • A teal symbol represents conditions that were met and actions that were taken.
  • A blue symbol represents a workflow that's been paused by using theWaitaction.
  • A spinning icon appears next to a step that's currently running.
  • A badge displays next to a step if an error occurs.

工作流的运行日志的例子dds customer tags based on a customer's lifetime spending

In this example, the workflow examines products that were recently updated, checks if the product type istest, and adds a tag to those products.

Following the workflow preview, a results section provides additional details.

  • TheStarted when...section indicates the trigger that started the workflow.
  • TheChecked if...section indicates the conditions that were checked and whether the conditions were met.
  • TheFor each...section indicates the number of items in the selected list and if any errors occurred when the step ran.
  • TheDid this...section indicates the actions that were taken by the workflow.
  • TheResultssection displays the following information, accompanied by date and time:

Example of the results section of a run log for a workflow that adds customer tags based on a customer's lifetime spending

Monitoring workflows that use the For each action

Workflows that include theFor eachaction repeat actions several times. Because of this, the following is true for theRun historypage for workflows that contain aFor each行动:

  • TheStatusandActionsections apply to all the actions taken by theFor eachaction. If any errors occur, then the number of errors displays.
  • TheRun detailssection, including the preview of the workflow, apply only to the last action that theFor eachaction has taken.
Ready to start selling with Shopify?Try it free