UpdateCategoriesForStandardProduct
Changed on:
2 Nov 2023
Overview
Adds or removes categories from the standard product based on the information provided in the event
Plugin Name | Inventory Reference Module |
---|---|
Namespace | [[account.id]].globalinventory |
The Inventory Reference Module is the foundation for inventory related implementations. It provides reference Workflows for inventory ingestion and processing. Extensible by design, use this Module as a base to build a solution to the needs of your customers.
The Inventory Module includes the following areas:
- Product Catalogue workflow
- Inventory Catalogue workflow
- Control Group workflow
- Virtual Catalogue workflow
UI Description
Adds or removes categories from the standard product based on the information provided in the event
Accepts
- PRODUCT
Actions
- This rule produces a MutationAction that will remove all the categories from the standard product expect the categories provided as part of the event attribute {categoryRef}. If one or more of the categories provided in the event attributes are not already linked to this standard product they will be added to this product. The number of MutationActions produced in this rule depends on the categories in the event attributes. There will be a MutationAction if one or more categories are to be added and another MutationAction if there are one or more categories to be removed from the product
Rule parameters
This rule has no Input Parameters.
Event attributes
Parameter | Description | Data Type | Required? |
ref | The ref of the product | String | Required |
categoryRefs | The list of categories that will be linked to this standard product | [String] | Optional |
Exceptions
If the event attribute
`{ref}`
Configuration example
1{
2 "name": "FLUENTRETAIL.globalinventory.UpdateCategoriesForStandardProduct"
3}
Language: json
Detailed Technical Description
This rule queries all the categories linked to this standard product using the
`{ref}`
`{rootEntityRef}`
`{categoryRefs}`
`{categoryRefs}`
Version History
v2.0.0
refers to the plugin