Loading
Intermittent Errors with Salesforce Trial Org Registration Read More
Get Started with Communications, Media, and Energy & Utilities (CME)...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Product Category Data Maintenance

          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

          • Normally, category syncing happens automatically whenever a product is associated or disassociated with a category. But there might be special situations when triggers are disabled or bulk data loads are performed. In those situations, this batch job can be run.

          • If a product has multiple versions and one version is associated with a catalog, the other existing versions aren't associated with the catalog. To associate all existing versions with the catalog, 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.

           
          Loading
          Salesforce Help | Article