The price list that started on Monday
New trade prices are loaded days ahead and Finance and Operations applies them on the right morning, but the trade portal never hears; the team traces it to one business event left inactive, catches up in minutes and closes the gap.
The situation
Contoso Entertainment System USA (legal entity USMF) sells to its trade customers at agreed prices, kept as sales price trade agreements. Customers order through a trade portal that an outside agency runs. The portal does not ask Finance and Operations for prices on every page; it keeps its own price list and switches each price on the day it takes effect, when it receives the Sales price agreement effective business event. When a price lapses with nothing to replace it, the Sales price agreement expired event tells it to stop selling at that price.
Three people are involved:
- Amara, pricing analyst, maintains prices in the company's pricing tool. The tool pushes them to Finance and Operations through Lattice, as an integration client whose user holds the Integration operator role.
- Ravi, integration administrator, holds the Integration administrator role and, for the standard business events pages, the System administrator role.
- The portal agency's developer, who owns the endpoint the events go to.
New prices for customer US-001 start on Monday 16 November 2026: item D0001 goes from 42.50 to 45.00 USD, and item D0002 changes on the same day.
Why it matters
- A portal that shows last week's price takes orders that Finance and Operations then prices differently. Every gap is a phone call, a credit note or a customer who stops trusting the portal.
- The moment a price starts writes nothing to the database: the price was saved days earlier and simply starts to apply. Only the Lattice sales price effectivity events background process notices that moment and tells subscribers.
What Amara and Ravi do
Wednesday: Amara loads the new prices
-
Amara's pricing tool sends the two new prices in one
setSalesPriceBatchcall. Each item is asetSalesPricerequest with the newFromDate; this is the item for D0001:{"LegalEntityId": "USMF","AccountCode": 0,"AccountRelation": "US-001","ItemCode": 0,"ItemRelation": "D0001","CurrencyCode": "USD","UnitPrice": 45.00,"FromDate": "2026-11-16"}See Scenario: maintain sales prices and ask for the effective price.
-
The answer reads "2 of 2 sales prices were applied." with one result per item. The pricing tool pushed this year's prices through Lattice in January, so each item has one open-ended price, and each result reads
OutcomeNameSuperseded: the current price now ends on Sunday 15 November (SupersededNewToDate) and the new open-ended price starts on Monday.CreatedAgreementRecIdnames the new price row; Amara's tool stores it. A price with a From date before today would have been refused, and pushing the same list again changes nothing (Unchanged). -
Nothing reaches the portal yet, and that is intended: the portal subscribes only to the effective and expired events, so it switches on the day, not when the price is saved.
Friday: an endpoint change leaves one event behind
- The agency moves the portal to a new receiving service and asks Ravi to send the events to its new address. On System administration > Setup > Business events > Business events catalog, Ravi adds the endpoint on Endpoints, deactivates the two old activations on Active business events, and activates Sales price agreement expired for USMF on the new endpoint. A call interrupts Ravi, and Sales price agreement effective stays inactive. See I want to activate a business event and send it to an endpoint.
Monday 01:10: the daily run holds its position
- The Lattice sales price effectivity events background process runs once a day, at about the time of day it was first registered (a little later after a late run), which at Contoso is a little after 01:00. It visits every legal entity where either event is active. In USMF it finds the effective event inactive, sends nothing for it, and writes "Sales price agreement effective is not active in this company. Its sweep kept its position and will catch up once the event is activated." See Lattice sales price effectivity events.
- The expired sweep runs as usual. The old prices ended on Sunday, but each was replaced by a new price on Monday, so they were replaced rather than left to lapse, and no expired event is sent. The run ends with "Sales price agreement effectivity run completed. Effective events sent: 0. Expired events sent: 0."
Monday 09:30: Amara checks the price Finance and Operations will charge
- Customer service calls Amara: the portal showed 42.50 for D0001, but the order confirmation from Finance and Operations says 45.00.
- Amara's pricing tool asks Lattice for the effective price with
resolveSalesPrice: customer US-001, item D0001, quantity 1, today's date. The answer isUnitPrice45.00, andSourceAgreementRecIdequals theCreatedAgreementRecIdfrom Wednesday. Finance and Operations has the right price and runs the same price search a sales order line does; the portal simply never heard about it. The inquiry writes nothing.
Monday 09:45: Ravi finds the inactive event and catches up
- On System administration > Setup > Process automations, Background processes tab, Ravi selects Lattice sales price effectivity events and View most recent results: "Lattice sales price effectivity events finished." The run did not fail, so the answer is in its log. See I want to check that the Lattice background processes are running.
- On System administration > Inquiries > Batch jobs, Ravi opens the log of the morning's job Lattice sales price effectivity events and finds the USMF message from step 5.
- On the Business events catalog, Active business events lists Sales price agreement expired on the new endpoint and nothing for the effective event. Ravi activates Sales price agreement effective for USMF on the new endpoint.
- Ravi does not wait for Tuesday's run. In USMF, Ravi runs System administration > Periodic tasks > Lattice business events > Sales price agreement effectivity (effective/expired) events, which sweeps the current legal entity now. The effective sweep starts from the position it kept and reports the prices that started since then: "Sales price agreement effectivity run completed. Effective events sent: 2. Expired events sent: 0." Running it as well as the daily background process sends nothing twice, because both share one position per legal entity and event.
- The portal receives the two events. The one for US-001 and D0001 carries
amount45.00, the MondayfromDate, andpriceDiscTableRecIdequal to theSourceAgreementRecIdAmara saw. The portal switches its prices by 10:00. See Sales price agreement effective.
Why the catch-up worked. The effective sweep had been active since the summer, so it had a position to resume from. A sweep whose event has never been active only records its starting date on its first run and reports nothing up to and including that date. Activate a new subscription at least one daily run before the first price it must hear about.
Afterwards: closing the gap
- Customer service honors the portal price on the three orders taken before 10:00, so no customer pays more than the portal showed.
- Ravi adds a step to the team's endpoint-change checklist: after the change, Active business events must list both Sales price agreement effective and Sales price agreement expired for every legal entity the portal sells from.
- On the morning a price list starts, Ravi reads the effectivity job's log rather than only the process results: a
run that finished can still have held a sweep. Ravi also saves a
resolveSalesPricerequest for a sample customer and item in the Service test console (Save request), so the next check takes seconds. See Page reference: Service test console. - The agency adds its own check: on the first morning of a price list, the portal compares a sample of its prices
with
resolveSalesPrice, the same call Amara's tool makes.
What changed
- The prices were never wrong in Finance and Operations. The superseded timeline made Monday's price apply on Monday, and the effective price inquiry proved it in one call.
- Nothing was lost. The effective sweep kept its position while its event was inactive, and one run from the menu item sent exactly the missed events, no more.
- The fault was found in minutes, from the process results, the job log and the active events, without a support ticket.
- The next endpoint change is checked, and the first morning of every price list now has a two-minute check.
For the business: the portal and Finance and Operations agree on price on the day a price list starts, and the few orders taken in the gap were put right the same morning.
Try it yourself
In a sandbox with the USMF demo data:
- On the standard Business events catalog, create a test endpoint and activate Sales price agreement effective and Sales price agreement expired for USMF. Let one daily run pass (or run the menu item from step 12 once) so each sweep records its starting date. See Business events.
- Push a price for US-001 and D0001 with a From date of tomorrow through
setSalesPrice, as in the sales price scenario. An Integration administrator can send it from the Service test console. - Deactivate Sales price agreement effective. The next day, run the menu item from step 12 in USMF and read the "not active in this company" message.
- Activate the event again, run the menu item once more, and see the effective event arrive at your endpoint.
- Call
resolveSalesPricefor the same customer, item and date and compareSourceAgreementRecIdwith the event'spriceDiscTableRecId.
Related
- Lattice sales price effectivity events
- Scenario: maintain sales prices and ask for the effective price
- Scenario: react to Lattice business events
- I want to subscribe my system to a business event
- Activating an event and sending it somewhere
- Sales price agreement effective and Sales price agreement expired
- A new webshop in a week