MSBA-342 · Lesson 12 of 12 · 22 min

Case study: integrating a warehouse robot system

▶ Video coming soon A video version of this lesson is on the way.

The gray row at the bottom of the integration register had waited eleven clinics. Henrik Salo's proposal was to pilot autonomous mobile robots in one zone of DW01, the distribution warehouse at Denver, in the second quarter of 2027, a few months after go-live. The robots would come from a fictional vendor, Tarnwick Robotics, whose cloud service, Tarnwick Fleet Manager, assigned tasks to a fleet of twelve goods-to-person robots that carried shelving pods from storage to two pick stations. Workers at the stations would pick spare parts and small pumps from the pods into totes, and the robots would return the pods. Tarnwick offered a REST API for tasks and inventory, webhooks for events, and a nightly count file. Henrik wanted to know whether finance and operations apps could drive the robots without making the warehouse depend on a fragile integration. The final clinic was the design session that answered him.

This capstone pulls together every clinic in the series. It follows the design as Desmond and Prudence produced it in the second half of November: requirements, a pattern for each requirement, the custom pieces, security and performance, testing, and the open questions. Everything after go-live is a plan. Henrik, Roshni Adebayo-Kerr and Annelise Vorster-Kim joined for the requirements; Thandeka joined for security and inventory accuracy; Kiri chaired the decision at the end.

The requirements

Henrik and Roshni listed what the pilot needed, and Desmond turned each need into a numbered requirement so that every design decision could point to one. Two requirements came from Thandeka rather than the warehouse: inventory must never be adjusted without a person's approval, and every robot action that changes stock must be traceable to a warehouse work line. Those two requirements shaped the design more than any technical limit.

Requirements for the robot pilot.
IDRequirementSource
R1Pick work for the robot zone reaches Tarnwick within one minute of releaseHenrik
R2Pick confirmations from the stations update the warehouse work in finance and operations appsHenrik
R3Short picks and damaged items become exceptions handled by a supervisorRoshni
R4Tarnwick knows the locations and items in the robot zoneRoshni
R5Nightly robot counts are compared with on-hand inventory; adjustments need approvalThandeka
R6Every stock change by the robot system traces to a work lineThandeka
R7Robot telemetry and pick performance are available for analysisHenrik
R8The warehouse keeps working manually if the integration is downKiri

Choosing a pattern for each requirement

Desmond asked Prudence to propose a pattern for each requirement before he said anything, using the one-sentence rules she had written in earlier clinics. Her table needed only two corrections.

The pattern chosen for each requirement.
Req.PatternWhy
R1Custom business event to Service Bus, then OData read of work linesTell, do not poll; the event stays small and the adapter reads details by key
R2Custom service operation for pick confirmationsA business operation with validation and a result, idempotent by task ID
R3Exception table written by the service; Power App over a virtual tablePeople handle exceptions where they work; no copy of data
R4Recurring export of zone locations and items, weekly and on demandBulk reference data on a schedule
R5Recurring import of counts into a staging table; counting journal proposal for approvalBulk data in; a person approves any adjustment
R6All stock changes through standard work confirmation; work ID in every messageOne path for stock; traceability by natural keys
R7Telemetry from Tarnwick straight to Fabric; finance and operations data through Fabric linkAnalytics stays out of the transactional path
R8Robot zone work can be released to the mobile app instead; integration failures queue, not blockLoose coupling and a manual fallback

Her first draft had used OData polling every thirty seconds for R1. Desmond pointed back to the performance clinic's opening story and to R8: polling would load the web servers all day for the sake of a few hundred picks, and a poller that fails tends to fail silently. A business event fires only when work is released, survives an adapter outage in the Service Bus queue, and costs nothing when the warehouse is quiet. Her first draft for R5 had imported counts straight into an inventory adjustment journal and posted it. That broke Thandeka's requirement and Cobalt Ridge's long-standing rule that automated systems may draft or submit but never post. The corrected design imported counts into a staging table and created a counting journal for a person to review and post.

An architecture diagram with three columns. Left: finance and operations apps with boxes for warehouse work, CRRobotWorkReleasedBusinessEvent, CRRobotWorkLineEntity, CRRobotConfirmationService, CRRobotExceptionTable, and recurring data jobs for locations and counts. Middle: Azure, with a Service Bus topic cr-robot and an adapter function. Right: Tarnwick Fleet Manager with tasks API, webhooks and nightly count file. Arrows: business event to Service Bus to adapter; adapter reads work lines by OData; adapter creates tasks in Tarnwick; Tarnwick webhook to adapter; adapter calls the confirmation service; weekly location export and nightly count import between the recurring jobs and the adapter. A dashed arrow from Tarnwick goes to a Fabric box for telemetry, and Fabric link connects finance and operations to the same Fabric box. A Power App over a virtual table reads the exception table.
The robot pilot design: events out, a service in, bulk files on schedules, and analytics on the side.

The outbound path: releasing work to robots

When a wave of sales orders is released to the warehouse, warehouse management creates work: pick lines from storage locations and put lines to the pack station. For the pilot, the location directives that Annelise configured would send picks for items stored in the robot zone, R1, to locations that Tarnwick's pods occupied. Prudence's business event, CRRobotWorkReleasedBusinessEvent, would be sent once per work header that had at least one pick line in zone R1, from the work release logic, after commit. Its payload carried the warehouse, the work ID, the number of robot lines, the release time and the legal entity. Nothing else.

The adapter, an Azure Function owned by the partner's integration team, received the event from the cr-robot topic, checked the control number for duplicates, then called OData once to read the work lines for that work ID through a new read-only entity, CRRobotWorkLineEntity, selecting only the line number, item, quantity, unit, location and license plate. It translated each line into a Tarnwick task, using the work ID and line number as Tarnwick's external reference, and posted the tasks to Tarnwick's API. If Tarnwick was unreachable, the function left the message on the topic for retry; after the retry limit, the message went to the dead-letter queue and Roshni's supervisors received an alert telling them to release the work to the mobile app instead.

The outbound pieces. Names are Cobalt Ridge designs; the hook in the work release logic is to be chosen with the extensibility guidance from MSBA-341.
Event   CRRobotWorkReleasedBusinessEvent   (category: Warehouse management)
  Payload  Warehouse, WorkId, RobotLineCount, ReleasedDateTime (ISO 8601), LegalEntity
  Sent     once per work header with lines in zone R1, after the release commits

Entity  CRRobotWorkLineEntity   (read only, Public: CRRobotWorkLines)
  Key      dataAreaId, WorkId, LineNum
  Fields   ItemId, Quantity, UnitId, LocationId, LicensePlateId, WorkLineStatus
  Read     GET .../data/CRRobotWorkLines?$filter=WorkId eq 'DW01-W-0018827'
                &$select=LineNum,ItemId,Quantity,UnitId,LocationId,LicensePlateId

The inbound path: confirming picks

When a worker at a pick station confirmed a pick, Tarnwick sent a webhook to the adapter with the task's external reference, the quantity picked and a reason code if the quantity was short. The adapter called a custom service operation, confirmPicks, on CRRobotConfirmationService, sending up to ten confirmations in one call to keep requests few at peak. For each confirmation, the service found the work line by work ID and line number, checked that it was still open and that the quantity did not exceed what remained, and called the standard warehouse work confirmation logic for that line, so that inventory moved exactly as it would if a worker had confirmed the pick on the mobile app. That single path satisfied R6: every stock change by the robot system was a normal work confirmation, traceable to a work line.

The confirmation operation. Each confirmation is processed in its own transaction inside CRRobotPickProcessor, so one bad line does not roll back the others.
[DataContract]
class CRRobotPickConfirmation
{
    str     taskReference;   // Tarnwick task ID, unique per attempt series
    WHSWorkId workId;
    LineNum lineNum;
    Qty     qtyPicked;
    str     reasonCode;      // empty, SHORT or DAMAGED
    // parm methods with DataMember attributes omitted
}

class CRRobotConfirmationServiceClass
{
    [AifCollectionTypeAttribute('_confirmations', Types::Class, classStr(CRRobotPickConfirmation)),
     AifCollectionTypeAttribute('return', Types::Class, classStr(CRRobotPickResult))]
    public List confirmPicks(List _confirmations)
    {
        List results = new List(Types::Class);
        ListEnumerator e = _confirmations.getEnumerator();
        while (e.moveNext())
        {
            CRRobotPickConfirmation c = e.current();
            // Idempotency: a task reference already processed returns its stored result
            results.addEnd(CRRobotPickProcessor::process(c));
        }
        return results;
    }
}

Three design points came from earlier clinics. The operation was idempotent: Tarnwick's task reference was stored with the result, and a repeated confirmation returned the stored result instead of confirming twice, because the adapter would retry on timeouts and 429 responses. Each confirmation ran in its own transaction, so that one invalid line produced one error in the result list rather than failing the whole batch. And short or damaged picks did not try to solve the problem automatically: the processor confirmed the quantity actually picked, wrote a row to CRRobotExceptionTable with the work line, reason and station, and left the remaining quantity on the work line for a supervisor to decide.

Exceptions, reference data and counts

Roshni's supervisors would handle exceptions in a small canvas app over a virtual table for the exception entity, embedded in a Teams channel for the robot zone. Each exception showed the work, item, location, reason and the photo the station camera took. The supervisor could send a worker to the location with the mobile app, mark the item damaged through a standard inventory status change, or cancel the remaining work, all through standard warehouse processes in the finance and operations client; the app's job was to show the exception and link to the right page, not to change stock itself.

Reference data moved on a schedule. A recurring export, run weekly and on demand when Roshni changed the location master, sent the locations and items of zone R1 to Tarnwick through the adapter, which dequeued, transformed and acknowledged the file as the recurring integrations clinic described. Counts moved the other way: Tarnwick's nightly count file was enqueued to a recurring import into a custom entity over a staging table, CRRobotCountStaging. A batch job then compared the counts with on-hand inventory for each location, and where they differed beyond a tolerance, created lines in a counting journal for Roshni to review and post in the morning. The robot system never adjusted inventory on its own.

Analytics, security and performance

Henrik's R7 was met without touching the transactional system. Tarnwick could stream robot telemetry, such as travel times, battery levels and station idle time, into a Fabric eventstream that Cobalt Ridge would own. Through Fabric link, the same workspace would hold the warehouse work tables and the exception and count staging tables, all with row version change tracking enabled from the start. Pick rates per station could then be joined with work lines by work ID, the same natural key that every message carried.

Security followed the pattern from the OData clinic. The adapter had its own Microsoft Entra app registration, mapped to the integration user CR-INT-ROBOT, which held one custom role, CR Robot integration, with privileges for the work line entity, the confirmation service and the two recurring jobs, scoped to the CRCA or CRUS company that owned DW01 on each site. The Service Bus topic used its own namespace, with access granted only to the application's endpoint and the adapter. Thandeka reviewed the role against the separation of duties rules and confirmed that the robot integration could not post a counting journal or approve anything.

For performance, Prudence used Henrik's plan: up to nine hundred picks an hour at peak across both stations, which meant fifteen confirmations a minute, sent in calls of up to ten, so two or three calls a minute; and perhaps sixty work release events an hour, each followed by one OData read. These numbers were small compared with the distributor portal at peak, but the robot integration was the one that kept physical work moving, so its app registration was mapped to High in the throttling priority mapping, and its adapter implemented the retry specification from the previous clinic with a cap of four parallel requests.

Failure modes and the manual fallback

Kiri's R8 was the requirement that made the design trustworthy. Desmond walked through each failure. If Tarnwick's cloud was down, release events queued in Service Bus and, after the retry limit, supervisors released robot zone work to the mobile app, where workers could pick from the pods manually. If finance and operations apps were unavailable, Tarnwick held confirmations and the adapter retried with backoff; robots kept moving pods for work already assigned. If the adapter failed, both queues filled and the same alerts fired. In every case, the worst outcome was slower work, never wrong inventory, because the only path that changed stock was the standard confirmation, which either happened once or not at all.

A sequence diagram with five lanes: warehouse work in finance and operations, Service Bus, adapter, Tarnwick, pick station. Steps: work released; business event sent after commit; adapter receives event; adapter reads work lines by OData; adapter creates tasks; robot brings pod; worker picks and confirms; webhook to adapter; adapter calls confirmPicks; work line confirmed; result returned. A side branch from confirmPicks labeled short pick leads to an exception record for the supervisor.
One pick from release to confirmation, with the short-pick branch.

Test plan and open questions

The test plan had four stages, all planned for the first quarter of 2027. Unit tests with SysTest for the pick processor, including repeated task references and over-picks. Integration tests in UAT against Tarnwick's sandbox, covering every requirement and every failure mode in the walk-through. A load test at twice Henrik's planned peak, alongside the distributor portal and normal browser and mobile users. And a two-week shadow run in the warehouse, with robots working real orders while supervisors watched the exception app and Roshni reconciled counts each morning, before the pilot was declared live.

Three questions stayed open and went into the register. Whether Tarnwick's webhook signature could be validated by the adapter, which Henrik would ask the vendor. Whether Microsoft's standard warehouse automation options, which change with each release, now covered any part of the design, which Annelise would check on Microsoft Learn before build started. And whether the pilot's zone would stay in one legal entity on both sides of the border, which depended on CRMX's distribution plans.

Worked problem

A confirmation arrives twice

During the shadow run, a network timeout causes the adapter to send the same batch of ten confirmations twice. The first call succeeded on the server, but the adapter never saw the response. What happens, and why is inventory still right?

Show solution
  1. The second call reaches confirmPicks with the same ten task references.
  2. For each confirmation, the processor finds the task reference already stored with a result and returns that stored result without confirming the work line again.
  3. The adapter receives ten successful results and marks the tasks complete in Tarnwick.
  4. No work line was confirmed twice, so on-hand inventory and the work history show each pick exactly once, traceable to its work line.

Answer: The repeated call is harmless because the operation is idempotent by task reference; inventory changed once, through the standard confirmation path.

What the series covered, and what comes next

At the end of the clinic, Desmond scrolled back to the top of the integration register. Every row now had an entity, a pattern, an owner, a security role, a throttling priority and a test. Prudence had built or designed data entities, OData calls and actions, custom services, recurring integrations, business events, a dual-write evaluation, virtual tables, an ER solution with X++ helpers, Fabric link sources and an embedded report, Power Platform connections and a performance plan. Together they correspond closely to the integration and data domain of the MB-500 exam, which the current skills outline weights at 15 to 20 percent, and to parts of its reporting and performance domains. The next course, MSBA-343, takes the same module through security, performance tuning and application lifecycle management. Kiri closed the clinic by moving the robot row from gray to green: approved for build after go-live.

Common mistakes

  • MistakePolling for released work every few seconds.

    InsteadSend a business event when work is released and read the details once by key.

  • MistakeLetting the robot system adjust or post inventory.

    InsteadChange stock only through standard work confirmation, and route count differences to a person.

  • MistakeFailing a whole batch of confirmations because one line is invalid.

    InsteadProcess each confirmation in its own transaction and return a result per line.

  • MistakeDesigning without a manual fallback.

    InsteadMake sure work can continue on the mobile app if any part of the integration is down.

Summary and key terms

  • The robot design used a business event to release work, an OData read for details and a custom service for confirmations.
  • Every stock change went through standard work confirmation, traceable by work ID and line number.
  • Exceptions and count differences went to people through a Power App and a counting journal; the robot system never posted.
  • Reference data and counts moved through recurring integrations; telemetry and analytics went to Fabric.
  • Security, throttling priority, retry behavior, idempotency and a manual fallback made the integration safe to depend on.
Autonomous mobile robot
A robot that moves goods within a warehouse without fixed tracks, directed by fleet software.
Goods-to-person picking
A picking method in which storage pods are brought to a station where a person picks.
Adapter
Middleware that translates between finance and operations integrations and an outside system's API.
Idempotency key
A caller's unique reference that lets a service recognize and safely ignore a repeated request.
Manual fallback
A way for work to continue without the integration if it fails.
Shadow run
A period in which a new system works real transactions under close observation before going live.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Why did Desmond reject OData polling for releasing work?

    Show answer

    It loads the web servers continuously, fails silently, and does not survive an adapter outage the way a queued event does.

  2. How does the design satisfy the requirement that stock changes trace to work lines?

    Show answer

    All stock changes go through standard work confirmation for a specific work ID and line number, carried in every message.

  3. What happens if Tarnwick's cloud is down when work is released?

    Show answer

    The events wait in Service Bus; after retries, supervisors release the work to the mobile app and workers pick manually.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz