Ballast guided scenarios
Three stories of organizations using Ballast to solve a real configuration problem, from the moment the problem appears to the moment it is solved. Each one shows several Ballast capabilities working together, and explains the decisions along the way.
The organizations and people are fictional; the pages, settings, buttons and messages are Ballast's and Dynamics 365's own. Each story ends with a table of what it used and where to read more. For the same jobs as short procedures, see Scenarios.
Contents
1. Tightening credit checks before an audit
The situation
Northbeam Industrial Supply distributes industrial fasteners and fittings through three legal entities: NBUS
in the United States, NBCA in Canada and NBMX in Mexico. Its internal auditors found that sales orders in
NBUS and NBCA are never checked against customer credit limits, so orders ship to customers who are already
over their limit. NBMX sells only on prepayment and is fine as it is.
The fix is a parameter change, and the auditors set three conditions:
- it must take effect on the first day of the next quarter, not before, because the credit team needs time to review the limits themselves;
- it must not touch
NBMX; - the auditors will want evidence of what changed, who approved it and what the setting was before.
The people
| Person | Role in the story | Ballast role |
|---|---|---|
| Amara, credit manager | Asks for the change | None |
| Tom, configuration administrator | Prepares the change | Ballast preparer |
| Lucía, financial controller | Reviews and approves it | Ballast approver |
| Ken, internal audit | Collects the evidence | Ballast auditor |
Northbeam runs the Ballast publish engine as a daily batch job at 02:00, so dated changes go live without anyone being online.
Finding where the setting lives
Amara opens Credit and collections parameters to look at the credit limit settings and finds them read-only. That is Ballast's lock: the Accounts receivable module is governed, so its settings are changed through versions, not on the standard page.
Tom searches the Setting finder for Check credit limit on sales order. The setting is shown on Credit and collections parameters under Credit › Credit limits, and staged on Accounts receivable parameter versions, tab Credit rating › Credit rating, together with Credit limit type.
Preparing the change, company by company
Accounts receivable is a per-company module, so a version belongs to the company it is created in. Tom signs in to
NBUS and opens Accounts receivable > Setup > Accounts receivable parameter versions.
- Tom selects New. The draft starts as a copy of the version in force in
NBUStoday, so the only differences will be the ones Tom makes. - Tom names it Credit check on sales orders, next quarter, a name that says why the version exists, and puts Amara's request and the audit finding reference in Description.
- On the Credit rating tab, Tom sets Credit limit type and turns on Check credit limit on sales order, as the credit team specified.
- Tom sets From date to the first day of the next quarter and leaves To date blank: the change is permanent.
- Tom selects Compare. It lists the two fields Tom changed, with their current and new values, and nothing else. Had it listed a third line, someone would have changed a setting directly since the version in force was published, and publishing this draft would undo it.
Tom then signs in to NBCA and does the same there. In NBMX Tom does nothing: nothing staged in one company
reaches another, so there is nothing to protect.
As a preparer, Tom cannot approve or publish. Tom tells Lucía the two versions are ready.
Approving it
Lucía signs in to NBUS, selects Tom's draft on Accounts receivable parameter versions, reads its
Description and selects Compare: the same two lines. Lucía selects Approve.
The version's Status is now Approved, but its Effective state is Planned: its From date is still
ahead, so the version in force today keeps applying. Lucía repeats the review and approval in NBCA.
Why not publish now? Publishing applies whichever version is current, and Lucía's is not current until the quarter starts. Publish now on it would be refused with "The selected version is not the current version for this bundle, so publishing would not apply it. Only the current version can be published now."
The quarter starts
At 02:00 on the first day of the quarter, the publish engine runs. In NBUS and NBCA it finds a newly effective
version that differs from the one it last applied, and writes it to the live tables. In NBMX the effective version
is the one already applied, so it does nothing there.
When Amara opens Credit and collections parameters that morning, Check credit limit on sales order is on,
and still read-only. On System administration > Setup > Ballast publish runs, the night's run shows Success,
Manual run No, and on its Lines tab a line for each Accounts receivable table in NBUS and in NBCA, and
none in NBMX.
The evidence
Ken opens each of the two versions on Accounts receivable parameter versions, in its company, and selects Configuration audit there, which shows everything tied to that version. For each company the trail shows, in order:
| Event | Changed by | What it shows |
|---|---|---|
| Version created | Tom | The version and when it was made |
| Draft edited | Tom | One event per field changed, with the old and new value |
| Approved | Lucía | Who approved it, and when |
| Published | The account the batch job runs as | When it reached the live tables, one event per table |
The value before the change does not need reconstructing: it is in the predecessor version, which is still in the list, unchanged. Ken exports the events through the BallastAuditEvents data entity for the audit file, and checks that Audit retention (days) on Ballast parameters, 2555 days, covers Northbeam's seven-year retention policy.
What it used
| Capability | Read more |
|---|---|
| The page lock and the Setting finder | I want to find the version form that holds a setting |
| Per-company versions | I want to roll a change out across multiple legal entities |
| Preparer and approver roles | I want to review a change before it goes live |
| A dated version and the scheduled engine | I want to schedule a change for a future date |
| The audit trail as evidence | I want to run a period-end change with an audit deliverable |
2. The Monday-morning alert
The situation
Brightwater Components makes precision machined parts in one legal entity, BWUS. A partner's data migration
team spent the weekend loading master data into production. Part of their project reloaded the company's
procurement parameters from a template, through a standard data entity, straight into the live tables.
Ballast does not block a write like that: stopping an import halfway through would leave it in a worse state. It records the write instead, and raises a business event. Brightwater's system administrator activated Ballast direct (ungoverned) change detected when Ballast was installed, sending it to an endpoint that posts into the purchasing team's channel.
The people
| Person | Role in the story | Ballast role |
|---|---|---|
| Rosa, configuration administrator | Investigates and fixes | Ballast administrator |
| Ibrahim, procurement lead | Owns the procurement settings | None |
| The migration team | Made the change | None: they used a service account |
Monday, 08:10
An alert is waiting in the channel: the procurement parameters table, PurchParameters, was changed in BWUS on
Saturday night, by the migration team's account. The business event names the table, the company and the user, but
not the fields: Ballast raises one event for each saved record, however many of its fields changed.
Rosa opens System administration > Setup > Configuration audit and filters Source to Direct. The audit trail has one Direct changed event per field, each with the table, the field, the old value, the new value, Changed by and the Company. There are two: Activate change management was turned off, and Accept underdelivery was turned on.
Deciding what should stay
Rosa calls Ibrahim. One of the two changes is wrong and one is welcome:
- Activate change management must be on: Brightwater's purchase order approvals depend on it.
- Accept underdelivery is something Ibrahim had been meaning to ask for. The template turned it on by accident, but Ibrahim wants to keep it.
So Rosa needs to put one setting back and make the other one governed, with a version behind it like every other setting.
Putting it right through a version
Rosa signs in to BWUS and opens Procurement and sourcing > Setup > Procurement and sourcing parameter versions.
- Rosa selects New. The draft is a copy of the version in force, which still holds the values from before the weekend: change management on, underdelivery off.
- Rosa names it Accept underdelivery, agreed with procurement and describes what happened over the weekend.
- On the Procurement and sourcing parameters › Delivery › General tab, Rosa turns on Accept underdelivery, the change Ibrahim wants.
- Rosa selects Compare. It lists exactly one difference: Activate change management, live off, version on. Accept underdelivery is not listed, because live and the draft now agree. This is the whole effect the publish will have: one setting back on.
- Rosa selects Approve and then Publish now.
The run on Ballast publish runs shows Success, and Activate change management is back on. The audit trail now explains everything: two Direct changed events on Saturday, then a version that adopts one of them and reverses the other, with Rosa's name on it.
If nothing should have stayed, Rosa would not need a new version. A plain publish would do nothing, because the engine compares versions with its registry, not with live values, and the registry still names the version in force. Running Ballast publish engine for the Procurement and sourcing bundle with Force republish writes the version's values back over the drift. Force republish rewrites every company's live tables for the bundle, which suits Brightwater's one company but needs thought where there are several.
Fixing the cause
The migration team still has more loads to run. Rosa asks them to change the project so that parameters go through the Procurement and sourcing version and values entities instead of the standard entity. An import there creates a Draft that cannot arrive approved, so nothing goes live until someone compares it, approves it and publishes it. Rosa's system administrator gives the migration account the data-entity privileges for that bundle, through a role of its own.
What it used
| Capability | Read more |
|---|---|
| Recording changes made around Ballast, and the business event | I want to catch a change made outside the governed path |
| A new version to adopt one change and reverse another | I want to make a routine configuration change |
| Force republish | Force republish |
| Moving an integration to the version entities | I want to move an integration from the live parameters to the version entities |
3. Six weeks of peak season
The situation
Halvorsen Foods distributes chilled and frozen food to grocers from two legal entities, HFUS and HFCA. All
year, sales orders get their delivery dates from Delivery date control set to ATP, which promises only what
inventory can cover. During the six weeks before the holidays, order volumes triple, ATP dates move with every
truck that arrives, and order entry slows to a crawl while clerks override the dates by hand.
Sales operations wants Delivery date control set to Sales lead time from November 15 to December 31 in both companies, and back to ATP on January 1, without anyone having to remember to switch it back over the holidays.
Halvorsen's IT policy adds one more condition: every production configuration change is rehearsed in the user acceptance test (UAT) sandbox first, and moved to production as data, never retyped.
The people
| Person | Role in the story | Ballast role |
|---|---|---|
| Jonas, configuration administrator | Prepares and tests the change | Ballast administrator in UAT; Ballast preparer in production |
| Mei, data management consultant | Moves it to production | A role of Halvorsen's own with the Accounts receivable data-entity privileges |
| Grace, sales operations director | Approves it in production | Ballast approver |
Rehearsing in UAT
Jonas signs in to HFUS in the UAT sandbox and opens Accounts receivable parameter versions. The setting is on
the Shipments › Delivery control tab.
- Jonas creates a version named Peak season delivery dates, sets Delivery date control to Sales lead time, and selects Compare: one line.
- Jonas sets From date to November 15 and To date to December 31. The dates are locked once a version is approved, so this is the moment to get them right.
- Before relying on a To date, Jonas checks what is underneath it. The version in force today, the one with ATP, shows the Effective state Current and has no To date. That is the version each company returns to when the peak version's window ends.
- To try order entry with the new setting, Jonas approves a copy dated today, in UAT only, and afterward restores the version that was live before with Restore this version.
Moving it to production
Mei builds an export project in UAT, in HFUS, with the Accounts receivable version entity, Customer parameters
versions, and the values entity that holds Delivery date control, Customer sales parameters values, filtered
on the version's Name. The version entity carries the Name, Description and both dates, so the
window travels with it.
In production, Mei builds the import project with the version entity at a lower level than the values entity, and
runs it once in HFUS and once in HFCA: each company keeps its own versions, so each needs its own copy. Each
import creates a Draft, whatever the file says, and records an Imported event on Configuration audit, which
Mei checks before handing over.
Approving in production
Grace signs in to each company and opens the imported draft.
- Compare lists one line, Delivery date control: ATP live, Sales lead time in the version.
- The dates read November 15 to December 31, and the open-ended ATP version underneath is Current.
- Grace selects Approve. The version's Effective state is Planned until November 15.
November 15 to January 1
At 02:00 on November 15, the publish engine finds the peak version effective in both companies and publishes it. Order entry uses Sales lead time for the six weeks.
On December 31 the peak version is still effective: its To date is the last day it applies. At 02:00 on January 1, the engine finds that its window has ended and that the ATP version underneath covers the day, and it reverts each company to it. The run is a Success, and its Infolog carries a warning for each company, such as:
"Ballast: the window of … version 'Peak season delivery dates' ended on …. Company 'HFUS' was reverted to '…', the version now current. If that is not what should be live, approve a successor."
The peak version's Effective state shows Expired. Configuration audit has an Expired event for each company, with the lapsed version as the old value and the version it reverted to as the new one, and the Ballast version window ended business event tells sales operations that the peak settings are off.
What if nothing had been underneath? The engine would not fall back to the baseline. It would hold, keep Sales lead time live, warn on every run and raise one WindowEnded exception until someone approved a successor. That is why Jonas checked step 3 in UAT, and Grace checked it again in production.
What it used
| Capability | Read more |
|---|---|
| A temporary version with a To date | I want to make a temporary change |
| Effective state, and what happens when a window ends | When a To date passes |
| Moving a version with Data management | I want to promote configuration from sandbox to production |
| Importing into several companies | I want to import a version into several companies |
| The window ended business event | I want to send the Ballast business events where people look |