Add product to collections
The Add product to collections action adds the product that triggers the workflow to a collection.
The Add product to collections action contains the following fields.
|Collections||The collections to which the product is added. Click Select collections to select the collections to add a product to. Existing collections must be chosen. New collections can't be created by the Add product to collections action.|
The Add product to collections action has a hidden field added to it by the trigger. This field, Product ID, identifies the product to add to a collection. The product ID is set by default and can't be changed.
The Add product to collections action can be used in workflows that start with the following triggers:
- Inventory quantity changed
- Product added to store
- Product status updated
In this example workflow, a product is added to a collection when it is added to the store.
To learn more, review the collectionAddProducts mutation.