You are here:
Run Maintenance Jobs for Customer Acquisition Manager
When a new product is added or an existing product is modified, run the maintenance jobs to refresh the product hierarchy in the cache.
Run the maintenance jobs in the following order:
- In the App Launcher, click Vlocity CMT Administration.
- Select Maintenance Jobs.
- Run Clear Managed Platform Cache.
- Run Product Hierarchy Maintenance. Make sure to select the option Delete Old Data.
- Run Refresh Platform Cache (Full) or Refresh Platform Cache (Incremental).
- Go to Vlocity CMT Administrator and select Cacheable API Jobs. Run Regenerate Cached API Records. Select all the APIs and All Catalogs to run this job.
- Go to Setup. Search and open Custom Settings.
- Click Manage next to sfiEnergyCAMModifiedProductsCode.
-
Click New to add a product for which you want to regenerate the cache. Enter the required values for the Name, Product Code , and isProcessed fields, and click Save.
Repeat this step for all the new products.
NoteThe application will pick up the product for cache regeneration only if the isProcessed field is set to false.
-
Click Edit next to a record for the product that you want to modify. Edit the values of the fields as required. Click Save.
Repeat this step for all the modified products for which you want to regenerate the cache.
- In the App Launcher, go to All Items and click Vlocity Scheduled Jobs.
- Click sfiEnergyCAMRegenerateCaching.
-
From the address bar, copy the record-id for the sfiEnergyCAMRegenerateCaching job. For example, if the address bar has a URL:
then the record-id ishttps://energysalesdcapi.lightning.force.com/lightning/r/vlocity_cmt__VlocityScheduledJob__c/a5B4x000000I5W3EAK/viewa5B4x000000I5W3EAK. - Click Setup, and go to the Developer Console.
- Select Debug and open Execute Anonymous window.
-
Copy the following code to the window. Replace the record-id with a valid id.
vlocity_cmt.VlocityBatchFramework.startScheduledJobs(new Map<String, Object>{'vlocityScheduledJobIds' => new List<String>{'<record-id>'}}, new Map<String, Object>{'chainable' => true}); -
Click Execute.
To check for completion of this job, go to Setup and search Apex Jobs. You may find multiple instances of jobs that are in-progress state. Wait until all jobs are completed before proceeding.
- Close the developer console.

