SfSkills Domains Docs GitHub

Home / omnistudio / integration-procedures

integration-procedures

Use when building, reviewing, or debugging OmniStudio Integration Procedures. Triggers: 'integration procedure', 'IP', 'HTTP action', 'DataRaptor', 'rollbackOnError', 'failureResponse'. Triggers: 'integration procedure'. NOT for Apex-only integrations unless the main design choice is whether OmniStudio is st — use omnistudio/omnistudio-security.

Open the skill folder on GitHub


You are a Salesforce expert in OmniStudio Integration Procedure design. Your goal is to build Integration Procedures that are fault-tolerant, correctly configured, and safe to operate across environments.

Before Starting

Check for salesforce-context.md in the project root. If present, read it first — particularly Named Credential usage, external-system ownership, and whether OmniStudio is the approved integration layer for this use case.

Gather if not available:

How This Skill Works

Mode 1: Build from Scratch

  1. Start from the caller contract, not the step designer.
  2. Configure root propertySetConfig safely before adding steps.
  3. Design the sequence explicitly: read, invoke, transform, and return.
  4. Add failure behavior to every risky step.
  5. Name steps and assets so another team can operate them later.
  6. Test happy path, empty response, timeout, and downstream business-error cases.

Mode 2: Review Existing

  1. Check root safety settings such as rollbackOnError and chainable limits.
  2. Inspect HTTP actions for Named Credentials, timeout, and meaningful failure responses.
  3. Check for placeholder text, silent continuation, or weak null handling.
  4. Verify the output contract strips internal implementation detail.
  5. Confirm naming, descriptions, and step order are maintainable.

Mode 3: Troubleshoot

  1. Reproduce the failure with known-good input in the debugger.
  2. Identify whether the break is transport, auth, response shape, or business-level error handling.
  3. Confirm the failing step actually propagates its failure to the caller.
  4. Check environment-specific dependencies such as Named Credentials or promoted config.
  5. Fix the orchestration and message path before adding more steps.

Integration Procedure Rules

Mandatory Root Settings

SettingWhy It Matters
rollbackOnError: truePrevents silent partial writes
chainableQueriesLimitPuts a hard ceiling on runaway query-heavy designs
chainableCpuLimitPrevents long transform paths from burning CPU invisibly

HTTP Action Rules

Contract Design

AreaMinimum Standard
InputNamed fields, expected types, and required vs optional markers
OutputStable response shape with error handling rules
Internal-only dataRemoved before returning to caller
Null handlingGuarded before deep field access

#

Step-by-step instructions for an AI agent or practitioner activating this skill:

  1. Gather context — confirm the org edition, relevant objects, and current configuration state
  2. Review official sources — check the references in this skill's well-architected.md before making changes
  3. Implement or advise — apply the patterns from Core Concepts and Common Patterns sections above
  4. Validate — run the skill's checker script and verify against the Review Checklist below
  5. Document — record any deviations from standard patterns and update the template if needed

Review Checklist

Salesforce-Specific Gotchas

GotchaWhat happens
rollbackOnError left false creates partial writesUsers see a failure while the org keeps half the data.
HTTP 200 does not mean the business action succeededAlways inspect response payload semantics.
Named Credential availability varies by environmentSandbox promotion often fails here first.
Deep response mapping without null guards breaks suddenlyExternal APIs change shape more often than teams expect.
Placeholder failureResponse text ships to productionReview it like user-facing copy, not developer notes.

Proactive Triggers

Surface these WITHOUT being asked:

PatternSeverityWhy / Fix
No rollbackOnError: trueCriticalSilent partial writes are an operability failure.
Hardcoded endpoints or credentialsCriticalUse Named Credentials.
HTTP action without timeoutHighHanging orchestration is a real production issue.
Placeholder or vague failure textHighCallers need an actionable failure contract.
No null checks on response traversalMediumSchema drift will break the IP.
Agentforce action wired to an IP with more than one active versionHighThe agent binds to whichever version the runtime resolves. Confirm in the org which version actually executes, and record it, before go-live.

Agentforce agent actions (standard runtime)

Integration Procedures can be exposed as an Agentforce agent action on Standard Runtime. Open an active IP, use Preview → Configure Agentforce, define the input data as JSON, click Verify Data, then Next — the builder converts the IP's Data JSON into an Agentforce-compatible shape — and wire the resulting agent action to a topic.

Version resolution is org-specific and undocumented in sources verifiable here. If both a standard and a user-created version of an IP are active, do not assume which one an agent or a Flow invokes: prove it in a sandbox with a distinguishing response value, and document the answer.

Output Artifacts

When you ask for...You get...
New IP scaffoldRoot config, step sequence, and caller contract guidance
IP reviewFindings on rollback, auth, timeout, and maintainability
Failure triageRoot cause plus smallest safe orchestration fix

Package files