Run the batch processes to flatten the account and org unit hierarchies and populate the
complex pricing conditions. Flatten account hierarchy and org unit hierarchy batch is required for
searching across all customer hierarchy levels and applying the relevant conditions. Post the
completion of the pricing worker batch process, the pricing condition table the correct
mapping.
Required Editions
Set up tenant pairing. See Set Up Consumer Goods Cloud Processing Services for more
information.
|
Available in: Lightning Experience
Available in: Enterprise and
Unlimited Editions that have Consumer Goods Cloud enabled
|
| User Permissions Needed |
| To run batch processes: |
(CGCloud Business Admin OR CGCloud Retail Business Admin)
AND
Penny Perfect
Pricing
|
-
Log in to Salesforce.
-
From Setup, select Developer Console.
-
To open the Enter Apex Code window, select Debug and then select
Open Execute Anonymous Window.
-
Enter the batch process.
#NAMESPACE#.ScheduleCGCloudServFlattenAccHierarchy f =
new #NAMESPACE#.ScheduleCGCloudServFlattenAccHierarchy();
f.execute(null);
Replace the namespace with the namespace for the org.
-
Click Execute.
-
Enter the batch process.
#NAMESPACE#.ScheduleCGCloudServiceFlattenOrgUnit
effAccMgrbatch = new #NAMESPACE#.ScheduleCGCloudServiceFlattenOrgUnit();
effAccMgrbatch.execute(null);
Replace the namespace with the namespace for the org.
-
Click Execute.
-
Enter the batch process.
#NAMESPACE#.ScheduleCGCloudServiceComplexPricing f =
new #NAMESPACE#.ScheduleCGCloudServiceComplexPricing(); f.execute(null);
Replace the namespace with the namespace for the org.
-
Click Execute.
-
From App Launcher, find and select Batch Run Status.
-
Check if the three batches have run successfully.
The pricing condition tables are populated with the correct mapping and hash values (merge
key, pricing condition template, and key type).