You are here:
Product Category Data Maintenance
This job regenerates the Category Data JSON for all Product2 records.
This job picks up unique product group keys and distributes these keys across batches. In each batch, the Category Data JSON is populated for all products linked to the given list of group keys. You can run this maintenance job at anytime to synchronize the category data JSON for all products in an org.
When catalog product relationships are deleted, category data is recomputed and refreshed for all affected products.
Applies to |
CME Summer '21 and later |
|---|---|
Apex Name |
ProductCategoryDataBatchJob |
Where to Run This Job |
Maintenance Jobs in the Admin Console section in the Vlocity CMT Administration app. |
Risks of Running This Job |
Low |
When Not to Run This Job |
N/A |
When to Run This Job |
|
More Information |
When a new version of a product is created from an existing version, the category data field is cloned from the existing version to the new one with other fields. This ensures that the category data field stays updated across versions when new versions are created. A Catalog Product Relationship record represents the association between a catalog and a product (including all of its versions). If any product version is deleted, the catalog product relationship is not deleted because other versions may exist for the same product group key, and they are still be linked to the catalog. The exception is if the product version that is directly linked to the catalog is deleted. This is the product ID that is referenced by the lookup field of the Catalog Product relation record. If this version is deleted, all the product information (including Global Group Key) is cleared from the Catalog Product Relationship record. In this special situation, the admin must re-associate the existing versions of the product with the catalog: re-associate any one of the existing versions with the catalog. |

