To show the promotions for visits or show the promoted products for orders, create
promotion store records that link promotions to stores by using the AggregatePromotionBatch
batch. A retail promotion is set up using either an anchor account or an anchor account set. The
anchor account is higher in the account hierarchy. Lower-level accounts are designated valid
stores (Current Date is between Store Valid From and Store Valid Thru dates in Account
Extension).
Required Editions
Available in: Lightning Experience
Available in: Enterprise and
Unlimited Editions where Consumer Goods Cloud is enabled
Considerations
Keep these considerations in mind during the batch run.
The batch handles the promotions that have an anchor account (the Anchor Customer field
isn’t null).
To find the store accounts, the batch job looks into the account hierarchy by using the
flatten account hierarchy.
The batch doesn’t consider the promotions that have an anchor customer set for batch
processing. The accounts in the customer set are directly targeted for promotion,
eliminating the need for hierarchical checks.
The batch runs ad-hoc or can be scheduled periodically and Salesforce runs the batch at
the given time interval. If the batch is scheduled, it runs with a batch size in the
corresponding batch process configuration record. If no batch process configuration record
is found, it runs with the default batch size in the class, which is 1. Batch process
configuration records are shipped via static resource CSV files during the org setup.
Batch Job Details
The batch retrieves the promotions that have:
The Active field as checked
Current Date between Date From and Date Thru
Phase as Committed
Anchor Account as not null
Record Type as SellablePromotion (Starting from Spring ’25)
The batch process finds the stores that belong to the anchor account hierarchy.
The batch creates promotion store records linking the promotion to the store for the
anchor account. The batch verifies if promotion store records are added or removed for
each batch run.
Example
Here are the promotions and flatten account hierarchy for NTO
Atlanta.
Advanced Promotion
Slogan
Active
Anchor Customer
Date From
Date Thru
Phase
Special Cookies
Checked
NTO Atlanta
1/1/2000
1/1/2099
Committed
Flatten Account Hierarchy
Account
Node Level
Account Level 01
Account Level 02
Result Level
NTO Atlanta
1
NTO Atlanta
Trade Org
NTO Store
2
NTO Atlanta
NTO Store
Store
This batch creates these promotion store records.
Promotion Store
Promotion
Store
Special Cookies
NTO Store
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.