life-sciences-ordermanagement-configure
Set up Life Sciences Cloud Order Management and Store Check end to end in a customer org — from discovery to a field rep's Store Check, priced quote, signature, Submit and quote PDF on the iPad.
Try your first task
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: life-sciences-ordermanagement-configuredescription: "Set up Life Sciences Cloud Order Management and Store Check end to end in a customer org — from discovery to a field rep's Store Check, priced quote, signature, Submit and quote PDF on the iPad."metadata: version: "1.0" cliTools: - tool: - "npx" semver: ">=8.0.0" - tool: - "python3" semver: ">=3.8" - tool: - "sf" semver: ">=2.0.0"Life Sciences Cloud — Store Check and Order Management Setup Steel Thread
Introduction
This steel thread takes a blank Salesforce org (no Life Sciences Cloud package) to a working Store Check and Order Management (Quotes) experience on the Life Sciences Cloud iPad app, for one Field Sales Representative visiting retail stores (for example pharmacies).
By the end the rep runs a Store Check (Availability Audit, Primary and Secondary Display) and captures a quoted order from the Store Assortment, the Last Order or the catalog, with tiered and manual-discount pricing, a compliance disclaimer, signature, Submit and PDF.
A coding agent executes the thread through the Salesforce REST, Tooling and /headless/metadata APIs; the sf CLI is used only to log in and to provide the session. A human is involved only where no API exists or a physical iPad is needed.
How to use this skill
This file is the entry point. The full runbook is split into the files under references/, one per Act plus the shared rules and back matter. Every file is part of the skill and is binding; nothing in it is optional reading.
- Before Act 0, read these in full: How the agent runs this thread (the run rules: they apply to every Act and win over a conflicting step text), Runtime input schema, Irreversible-action consent list and Timing.
- Before each Act, read that Act's file (the Steps column below) in full, then the rows of Failure playbook and Gated branches its steps name. Do not run a step from memory or from this summary.
- When a step names a known limitation (K-number), an UNVERIFIED item, a human-required step, an asset file or a step dependency, open Known limitations, UNVERIFIED items, Human-required steps, Appendix B — Act 8 asset files or Appendix A — Step dependencies.
- At the end, report against Overall end state, Per-screen acceptance checklist, Success criteria, Build inventory, Cleanup and Gap journal.
Context: Assumptions and out of scope, Persona and JTBD, UX principles, Start state, Dependency order.
The Acts at a glance
| Act | Name | What it delivers | Irreversible / stop points | Steps |
|---|---|---|---|---|
| 0 | Intake & discovery | Six questions (seven keys) at 0.11 incl. consents C1–C11 and C14 and ORG_KIND; the rest are asked per Act; read-only org profile; run manifest | C1–C11 and C14 answered | act-00 |
| 1 | Pre-install foundation | Admin licences and permission sets, then every setting the package installer requires, in the required order | C1 Chatter/base settings, State/Country, Person Accounts, Multi-Currency; C14 org preferences, Account Plans, Enable Sales Territory, Surveys | act-01 |
| 2 | Package install & admin access | Admin access confirmed; lsc4ce installed in one attempt | — | act-02 |
| 3 | Post-install settings | Store Check, Quotes, Group Membership, record-type routing, mobile-admin permissions | — | act-03 |
| 4 | Field Rep persona | Field Rep profile, permission sets, licenses, user | C14 AppUsageAssignment Read (4.9a) | act-04 |
| 5 | Territory & store foundation | Active territory model, rep assignment, stores with addresses (Places) | Territory model activation; C14 manager territory assignment (5.4a) | act-05 |
| 6 | OM bundle, context & pricing | Order Management features, Quote context mapping, pricing recipe | OM "Turn On" | act-06 |
| 7 | Catalog, price books & pricing | Catalog, products, price books, tier schedules, the one active pricing procedure, Sales Transaction Type, org-default procedure, product discovery | — | act-07 |
| 8 | Quote web configuration | Quote record type, layout, FLS, record page, product views (Store Assortment + Last Order), 5-stage lifecycle, documents and disclaimer | Trigger-handler enablement; C14 AppUsageAssignment Read (8.15), override removal (8.9c), value sets and PathAssistant (8.16a), Document Builder licence (8.25) | act-08 |
| 9 | Store Check & Visit Decoupling configuration | Visit record-type routing, Store Check Visit page and lifecycle, assessment definitions for all three tabs | Removing legacy Visit overrides (if present); C14 muting hardening (9.21, only when on), org-wide list view (9.22a) | act-09 |
| 10 | Single mobile metadata generation | One validated mobile metadata cache covering both features | — | act-10 |
| 11 | iPad onboarding & first sync | Rep logged in on iPad with synced data | — | act-11 |
| 12 | Store Check E2E | Screens SC1–SC14 accepted on iPad | Gated: Verified checkbox, offline first upload | act-12 |
| 13 | Draft Quote E2E | Screens Q1–Q13 accepted on iPad | Gated: nil Status, workflow lock, reprice error, blank address, i18n tokens; C14 rep currency change (G12) | act-13 |
| 14 | Submit, signature, PDF, unlock | Screens Q14–Q17 accepted; PDF and unlock exercised once | Gated: double submit, PDF stuck, unlock route | act-14 |
| 15 | Repeat order from Last Order + final acceptance | Last Order product view proven; two-level completion report | — | act-15 |
Definition of done. Both feature journeys are accepted screen by screen on the iPad, as listed in the per-screen acceptance checklist. Each one is reported at two levels:
- Configuration verified: every postcondition query passes. Reported separately for web and iPad.
- Customer workflow verified: the rep completes the journey. Reported separately for web and iPad.
Every gated defect that fired is reported with its signature, and state is preserved.
Rules that hold in every Act
A summary only; the binding text is in How the agent runs this thread.
- Order and determinism. Acts and steps run in the listed order. Runtime values come only from the inputs frozen at Act 0; names are built from
<PFX>; no timestamps, counters or random suffixes; no judgment calls: every branch is decided by a runtime input, a query result checked against the step's rule, or a ⏸ STOP. - API first, then browser automation, then a person. Every metadata read and write goes through
/services/data/v<API_VER>/headless/metadata, one component per call, each read back right after its write. Web verification checks always go to a person. No rollback, no delete: if a call fails, stop and report which components were and were not written. - Full-replace safety. A
PUTof a permission set or an app is a full replace:GETthe full body first, add only the new element,PUTthe whole body, then compare counts with the saved copy. - Consent. Every irreversible or org-wide action (C1–C14) is shown at step 0.11 and answered
yesorask; nothing defaults toyes. Destructive changes, sharing changes on a customer org and any irreversible action not on the list are always a live ⏸ STOP. - Ambiguous results. After an ambiguous Save, Submit, activation, generation or sync, never repeat the action: reconcile the persisted state with a query first. Never tap Submit twice on a quote.
- Checkpoints. After every Act, stop and report the status (
PASSED,PASSED_WITH_NOTES,BLOCKED,FAILEDorAWAITING_CUSTOMER_VALIDATION), what changed, where to see it, open items, learnings and duration; continue only as the Auto-continue rule allows. - State. Everything the agent writes lives under
<WORK_DIR>/runs/run-NN/(manifest, learnings log, Gap journal rows,org-changes.md, artifacts); run files stay local to the customer's team. On restart, read the manifest and resume from the last incomplete step. - Known API behaviour worth repeating.
InstalledSubscriberPackagerejects aWHEREon the namespace (NamespacePrefix can not be filtered in a query call): query without aWHEREclause and filter onlsc4ceclient-side (0.9, 2.3).
Operations Reference
Operations this skill uses — routing and dependency reference.
| Operation | Purpose | Status | Call | Depends on |
|---|---|---|---|---|
readiness-currency-type-list | verify | — | GET /services/data/vXX.0/query | — |
readiness-lsc-permset-catalog | verify | — | GET /services/data/vXX.0/query | readiness-currency-type-list |
readiness-territory2-model-list | verify | — | GET /services/data/vXX.0/query | readiness-lsc-permset-catalog |
readiness-context-definitions-list | verify | — | GET /services/data/vXX.0/connect/context-definitions | readiness-territory2-model-list |
readiness-lifesci-stage-schema-list | verify | — | GET /services/data/vXX.0/query | readiness-context-definitions-list |
readiness-visit-record-check | verify | — | GET /services/data/vXX.0/query | readiness-lifesci-stage-schema-list |
readiness-lifesci-mobile-metadata-record-list | verify | — | GET /services/data/vXX.0/query | readiness-visit-record-check |
lifesci-config-assignment-list | read | — | GET /services/data/vXX.0/tooling/query | readiness-lifesci-mobile-metadata-record-list |
gap-package-install | write | — | — | — |
gap-ipad-flow | write | — | — | — |
gap-lsc-mobile-metadata-generate-route-missing | write | — | — | — |
om-context-definition-create | write | — | POST /services/data/vXX.0/connect/context-definitions | readiness-context-definitions-list |
om-context-mapping-set-default | write | — | PATCH /services/data/vXX.0/connect/context-definitions/{contextDefinitionId}/context-mappings | om-context-definition-create |
om-context-definition-activate | write | — | PATCH /services/data/vXX.0/connect/context-definitions/{contextDefinitionId} | om-context-mapping-set-default |
om-context-definition-readback | verify | — | GET /services/data/vXX.0/connect/context-definitions/{contextDefinitionId} | om-context-definition-create, om-context-mapping-set-default, om-context-definition-activate |