This job Regenerates the JSONAttribute fields for products managed through the Salesforce Classic interface, instead of Vlocity Product Console.
For products that are managed in the legacy Salesforce Aloha page through the Attributes Setup component, you can run this batch job in case the JSONAttribute gets out-of-sync with the attributes that are assigned to the product. By default, this job only creates the JSONAttribute for the products where JSONAttribute is null.
To update all products:
-
Go to Vlocity CMT Administration > CPQ Configuration Setup.
-
Add a new setting:
-
Name: ProductAttribJSONBatchJob Update All
-
Value: True
-
-
Call the batch job in execute anonymous:
Id batchJobId = Database.executeBatch(new FixProductAttribJSONBatchJob());
|
Applies to |
Releases prior to Summer '17 |
|---|---|
|
Apex Name |
FixProductAttribJSONBatchJob |
|
Where to Run this Job |
Developer Console |
|
Risks of Running This Job |
None |
|
When Not to Run This Job |
Do not run this job In a live production environment when orders are being taken. Do not run this job In orgs with products created using Vlocity Product Console. |
|
When to Run This Job |
|
|
More Information |
This job processes product attributes created using the Salesforce Classic interface and corrects the product attribute record IDs. It does not affect the org cache. |