Loading
Set Up and Maintain Retail Execution
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Run Complex Pricing Batch Processes

          Run Complex Pricing Batch Processes

          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

          1. Log in to Salesforce.
          2. From Setup, select Developer Console.
          3. To open the Enter Apex Code window, select Debug and then select Open Execute Anonymous Window.
          4. Enter the batch process.
            #NAMESPACE#.ScheduleCGCloudServFlattenAccHierarchy f = new #NAMESPACE#.ScheduleCGCloudServFlattenAccHierarchy(); f.execute(null);

            Replace the namespace with the namespace for the org.

          5. Click Execute.
          6. Enter the batch process.
            #NAMESPACE#.ScheduleCGCloudServiceFlattenOrgUnit effAccMgrbatch = new #NAMESPACE#.ScheduleCGCloudServiceFlattenOrgUnit(); effAccMgrbatch.execute(null);

            Replace the namespace with the namespace for the org.

          7. Click Execute.
          8. Enter the batch process.
            #NAMESPACE#.ScheduleCGCloudServiceComplexPricing f = new #NAMESPACE#.ScheduleCGCloudServiceComplexPricing(); f.execute(null);

            Replace the namespace with the namespace for the org.

          9. Click Execute.
          10. From App Launcher, find and select Batch Run Status.
          11. 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).

           
          Loading
          Salesforce Help | Article