To process the pricing conditions during a batch run, use the enhanced version (Penny
Perfect Pricing V2) of the pricing condition batch through the Apex class in the managed
package. The improved version of the Penny Perfect Pricing batch works better with less
resources, takes less time, and can handle more pricing conditions.
Required Editions
Available in: Lightning Experience
Available in: Enterprise and
Unlimited Editions that have Consumer Goods Cloud enabled
Considerations
To make sure data consistency and avoid processing errors, it isn't possible to modify
pricing conditions, stage conditions, scale stage conditions, key types, or pricing
templates during an active batch run.
Benefits of using the enhanced version of the Penny Perfect Pricing V2:
Uses Bulk API instead of REST API to extract or integrate data faster.
Reads the Last Successful Run datetime field from the Batch Last Successful Run object
to identify the latest time the process ran successfully. If there are errors, the Last
Successful Run datetime isn’t updated. The time in the Last Successful Run datetime field
is used in delta mode execution to extract the latest changed conditions.
Runs in full or delta mode. Full mode overwrites all conditions, and LastModifiedDate is
updated even when the condition doesn’t change. The full mode can have an impact on sync
performance. Delta mode updates the merged conditions only when the staged condition
values are updated. This runs faster when compared with full mode, as only a subset of
conditions are considered.
Note We recommend scheduling the batch in both full and delta
mode executions. Schedule the batch in full mode once a week during initial integration
or in exceptional cases (for example, cleanup) and in delta mode once a day (preferably
at night so that the updated conditions are available to the field users during their
morning sync). Specify the execution type by updating the Run Mode attribute from the
Batch Process Configuration records for Penny Perfect Pricing V2 to “delta” or “full.”
Batch Process Configuration is relevant only when you trigger the process by using the
cgcloud.Scheduler class.
Runs for all or single sales org. When the batch process runs for all sales
organizations, the system creates one single batch run status record per sales org, and
each sales org is run via an independent process, making it easier to read and understand
Key Performance Indicators (KPIs) for the sales org.
Enables soft deletion of pricing conditions. The JSON in the Content field is emptied.
The process never hard deletes condition records. The process recreates the merged
condition even when all stage conditions to be merged are deleted and don’t exist in
Salesforce.
Manage Custom Setting for Penny Perfect Pricing V2 Batch Consumer Goods Cloud by default runs the enhanced version of the Penny Perfect Pricing batch. The custom setting is created and enabled to run the Pricing Perfect Pricing V2 as part of the demo data upload using static resources while installing the Consumer Goods Cloud managed package. If you’re a customer using Consumer Goods Cloud managed package before Spring ’25, to use Penny Perfect Pricing (V2), manually create the CGCloudServiceComplexPricing custom setting.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.