Purpose of the Job:The Regenerate Cached API Records job rebuilds the cached records stored in the SBQQ__APICache__c object. This ensures that the latest data (e.g., updated prices, configurations, or rules) is reflected in API responses.
It forces Salesforce CPQ to re-evaluate and re-cache all records based on the current configuration and pricing data.
This job is explicitly designed to address scenarios where changes are not visible in API responses due to stale cache.
When to Use It:
After updating product prices, discount schedules, configuration rules, or attribute changes.
When troubleshooting discrepancies between Salesforce CPQ data and API responses.
How It Works:
The job iterates through all relevant records (products, quotes, etc.) and regenerates their cached representations.
This process updates the SBQQ__APICache__c table with fresh data, ensuring the Digital Commerce API returns accurate results.
https://help.salesforce.com/s/articleView?id=ind.comms_regenerate_cached_api_records.htm &type=5 When updates to product prices or configurations are made in Salesforce CPQ, the changes may not immediately reflect in the Digital Commerce API response due to cached data. The Regenerate Cached API Records job forces the system to rebuild the cached records with the latest data, ensuring the API returns updated values. Other jobs like "Populate API Cache" (initial population) or "Delete Expired API Cache" (cleanup) do not refresh existing cached records with new data. Why Regenerate Cached API Records (Option D) is Correct:
A. Populate API Cache Job:
This job initializes the cache for the first time (e.g., during CPQ setup).
It does not update existing cached records after changes are made.
B. Migrate Cache Records Job:
This job transfers cached records between Salesforce orgs (e.g., during sandbox-to-production migrations).
It is unrelated to refreshing data within the same org.
C. Delete Expired API Cache Job:
This job removes old cached records that are no longer valid (e.g., expired quotes).
It does not regenerate or update active cached records with new data.
Why Other Options Are Incorrect:
Salesforce CPQ Administration Guide:
Explains the role of caching in CPQ and states:"The Regenerate Cached API Records job updates the cached data used by the Digital Commerce API. Run this job after making changes to products, prices, or rules to ensure the API reflects the latest configurations."(Source: Salesforce Help – Manage Cached Data for APIs)
Explains the role of caching in CPQ and states:"The Regenerate Cached API Records job updates the cached data used by the Digital Commerce API. Run this job after making changes to products, prices, or rules to ensure the API reflects the latest configurations."(Source: Salesforce Help – Manage Cached Data for APIs)
API Cache Object (SBQQ__APICache__c):
The SBQQ__APICache__c object stores precomputed JSON representations of CPQ data for API efficiency.
Regenerating this object ensures that API responses align with the latest data model.(Source: Salesforce CPQ Developer Guide – APICache Object)
Troubleshooting Stale Data:
Salesforce recommends running the Regenerate Cached API Records job as a first step when API responses do not match CPQ configurations.(Source: Salesforce Knowledge Article – Troubleshoot CPQ API Cache Issues)
Key References from Salesforce CPQ Documentation:
Navigate to Setup → CPQ Settings → API Cache Jobs.
Select Regenerate Cached API Records.
Specify filters (e.g., products, quotes) or run it for all records.
Monitor progress in the Jobs tab.
Steps to Run the Job:
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit