Publish product

The Publish product action makes the product that triggers the workflow available on your online store.

Triggers

The Publish product action has a hidden field added to it by the trigger. This field, Product ID, identifies the order to cancel. The product ID is set by default and can't be changed.

The Publish product action can be used in workflows that start with the following triggers:

  • Inventory quantity changed
  • Product added to store
  • Product status updated

Example

Example of a workflow that publishes a product when inventory is greater than 10

In this example workflow, products are published when the inventory of that item is greater than ten.

API details

To learn more, review the productPublish mutation.

Ready to start selling with Shopify?

Try it free