---
schema_version: "1"
id: bd981dda64839c857698f3275e094968d02b7c05833e2509d9ed6434247095a0
title: Run Maintenance Jobs for Customer Acquisition Manager
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/energy_t_run_maintenance_jobs_294902.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.energy_t_run_maintenance_jobs_294902.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 67e40488f81615bdbba865ba2f2be160ff27d7ce6ca5f7c40f9e12a89d4670bb
description: When a new product is added or an existing product is modified, run the maintenance jobs to refresh the product hierarchy in the cache.
products:
  - Energy and Utilities
release: "264"
---
# 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:

1. In the App Launcher, click **Vlocity CMT Administration**.
2. Select **Maintenance Jobs**.
3. Run [Clear Managed Platform Cache](https://help.salesforce.com/s/articleView?id=ind.comms_clear_managed_platform_cache.htm&language=en_US).
4. Run [Product Hierarchy Maintenance](https://help.salesforce.com/s/articleView?id=ind.comms_product_hierarchy_maintenance.htm&language=en_US). Make sure to select the option **Delete Old Data**.
5. Run [Refresh Platform Cache (Full)](https://help.salesforce.com/s/articleView?id=ind.comms_refresh_platform_cache_full.htm&language=en_US) or [Refresh Platform Cache (Incremental)](https://help.salesforce.com/s/articleView?id=ind.comms_refresh_platform_cache_incremental.htm&language=en_US).
6. Go to **Vlocity CMT Administrator** and select **Cacheable API Jobs**. Run [Regenerate Cached API Records](https://help.salesforce.com/s/articleView?id=ind.comms_regenerate_cached_api_records.htm&language=en_US). Select all the APIs and All Catalogs to run this job.
7. Go to Setup. Search and open **Custom Settings**.
8. Click **Manage** next to **sfiEnergyCAMModifiedProductsCode**.
9. 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.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-energy_utilities-264-0-0-production-enus/520849e5-9b41-4bae-b97b-d269cc2fce83/images/icon_note.png)
    
    Note
    
    The application will pick up the product for cache regeneration only if the **isProcessed** field is set to false.
10. 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.
11. In the App Launcher, go to All Items and click **Vlocity Scheduled Jobs**.
12. Click **sfiEnergyCAMRegenerateCaching**.
13. From the address bar, copy the record-id for the **sfiEnergyCAMRegenerateCaching** job. For example, if the address bar has a URL:
    
    ```
    https://energysalesdcapi.lightning.force.com/lightning/r/vlocity_cmt__VlocityScheduledJob__c/a5B4x000000I5W3EAK/view
    ```
    
    then the record-id is `a5B4x000000I5W3EAK`.
14. Click **Setup**, and go to the Developer Console.
15. Select **Debug** and open **Execute Anonymous window**.
16. 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});
    ```
17. 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.
18. Close the developer console.

The product hierarchy is now updated and is ready to be used by the application.