← LeaderboardThe Skill Leaderboard

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.

Published by forcedotcom ↗forcedotcom/sf-skills

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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

ActNameWhat it deliversIrreversible / stop pointsSteps
0Intake & discoverySix 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 manifestC1–C11 and C14 answeredact-00
1Pre-install foundationAdmin licences and permission sets, then every setting the package installer requires, in the required orderC1 Chatter/base settings, State/Country, Person Accounts, Multi-Currency; C14 org preferences, Account Plans, Enable Sales Territory, Surveysact-01
2Package install & admin accessAdmin access confirmed; lsc4ce installed in one attempt—act-02
3Post-install settingsStore Check, Quotes, Group Membership, record-type routing, mobile-admin permissions—act-03
4Field Rep personaField Rep profile, permission sets, licenses, userC14 AppUsageAssignment Read (4.9a)act-04
5Territory & store foundationActive territory model, rep assignment, stores with addresses (Places)Territory model activation; C14 manager territory assignment (5.4a)act-05
6OM bundle, context & pricingOrder Management features, Quote context mapping, pricing recipeOM "Turn On"act-06
7Catalog, price books & pricingCatalog, products, price books, tier schedules, the one active pricing procedure, Sales Transaction Type, org-default procedure, product discovery—act-07
8Quote web configurationQuote record type, layout, FLS, record page, product views (Store Assortment + Last Order), 5-stage lifecycle, documents and disclaimerTrigger-handler enablement; C14 AppUsageAssignment Read (8.15), override removal (8.9c), value sets and PathAssistant (8.16a), Document Builder licence (8.25)act-08
9Store Check & Visit Decoupling configurationVisit record-type routing, Store Check Visit page and lifecycle, assessment definitions for all three tabsRemoving legacy Visit overrides (if present); C14 muting hardening (9.21, only when on), org-wide list view (9.22a)act-09
10Single mobile metadata generationOne validated mobile metadata cache covering both features—act-10
11iPad onboarding & first syncRep logged in on iPad with synced data—act-11
12Store Check E2EScreens SC1–SC14 accepted on iPadGated: Verified checkbox, offline first uploadact-12
13Draft Quote E2EScreens Q1–Q13 accepted on iPadGated: nil Status, workflow lock, reprice error, blank address, i18n tokens; C14 rep currency change (G12)act-13
14Submit, signature, PDF, unlockScreens Q14–Q17 accepted; PDF and unlock exercised onceGated: double submit, PDF stuck, unlock routeact-14
15Repeat order from Last Order + final acceptanceLast 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 PUT of a permission set or an app is a full replace: GET the full body first, add only the new element, PUT the 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 yes or ask; nothing defaults to yes. 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, FAILED or AWAITING_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. InstalledSubscriberPackage rejects a WHERE on the namespace (NamespacePrefix can not be filtered in a query call): query without a WHERE clause and filter on lsc4ce client-side (0.9, 2.3).

Operations Reference

Operations this skill uses — routing and dependency reference.

OperationPurposeStatusCallDepends on
readiness-currency-type-listverify—GET /services/data/vXX.0/query—
readiness-lsc-permset-catalogverify—GET /services/data/vXX.0/queryreadiness-currency-type-list
readiness-territory2-model-listverify—GET /services/data/vXX.0/queryreadiness-lsc-permset-catalog
readiness-context-definitions-listverify—GET /services/data/vXX.0/connect/context-definitionsreadiness-territory2-model-list
readiness-lifesci-stage-schema-listverify—GET /services/data/vXX.0/queryreadiness-context-definitions-list
readiness-visit-record-checkverify—GET /services/data/vXX.0/queryreadiness-lifesci-stage-schema-list
readiness-lifesci-mobile-metadata-record-listverify—GET /services/data/vXX.0/queryreadiness-visit-record-check
lifesci-config-assignment-listread—GET /services/data/vXX.0/tooling/queryreadiness-lifesci-mobile-metadata-record-list
gap-package-installwrite———
gap-ipad-flowwrite———
gap-lsc-mobile-metadata-generate-route-missingwrite———
om-context-definition-createwrite—POST /services/data/vXX.0/connect/context-definitionsreadiness-context-definitions-list
om-context-mapping-set-defaultwrite—PATCH /services/data/vXX.0/connect/context-definitions/{contextDefinitionId}/context-mappingsom-context-definition-create
om-context-definition-activatewrite—PATCH /services/data/vXX.0/connect/context-definitions/{contextDefinitionId}om-context-mapping-set-default
om-context-definition-readbackverify—GET /services/data/vXX.0/connect/context-definitions/{contextDefinitionId}om-context-definition-create, om-context-mapping-set-default, om-context-definition-activate