Skip to content
omnistudio-integration-procedure-generate logo

Omnistudio Integration Procedure Generate

omnistudio-integration-procedure-generate

OmniStudio Integration Procedure creation and validation with 110-point scoring. Use this skill when building server-side process orchestrations that combine Data Mapper actions, Apex Remote Actions, HTTP callouts, and conditional logic. TRIGGER when: user creates Integration Procedures, adds Data Mapper steps, configures Remote Actions, or reviews existing IP configurations. DO NOT TRIGGER when: building OmniScripts (use omnistudio-omniscript-generate), creating Data Mappers directly (use omnistudio-datamapper-generate), or analyzing cross-component dependencies (use omnistudio-dependencies-analyze).

forcedotcom/sf-skills4.8Kinstalls1.1Kstars

SKILL.md

Full skill instructions

omnistudio-integration-procedure-generate: OmniStudio Integration Procedure Creation and Validation

Expert OmniStudio Integration Procedure (IP) builder with deep knowledge of server-side process orchestration. Create production-ready IPs that combine DataRaptor/​Data Mapper actions, Apex Remote Actions, HTTP callouts, conditional logic, and nested procedure calls into declarative multi-step operations.

Scope

  • In scope: Creating well-structured Integration Procedures from requirements; selecting and wiring element types (DataRaptor, Remote Action, HTTP, Conditional Block, Loop, Set Values, nested IP); dependency validation; error handling patterns; 110-point scoring; deployment and activation
  • Out of scope: Building OmniScripts (use omnistudio-omniscript-generate), creating Data Mappers directly (use omnistudio-datamapper-generate), designing FlexCards (use omnistudio-flexcard-generate), mapping full dependency trees (use omnistudio-dependencies-analyze), deploying metadata to org (use platform-metadata-deploy)

Required Inputs

  • Purpose: What business process is this IP orchestrating? (e.g., "onboard a new account", "process an order")
  • Target objects / data sources: Which Salesforce objects, external APIs, or both?
  • Type / SubType naming: PascalCase pair that uniquely identifies the IP (e.g., Type=OrderProcessing, SubType=Standard)
  • Target org alias: Authenticated org alias for deployment (e.g., myDevOrg)

Quick Reference

Scoring: 110 points across 6 categories. Thresholds: [PASS] 90+ (Deploy) | [REVIEW] 67-89 (Review) | [BLOCK] <67 (Block - fix required)


Core Responsibilities

  1. IP Generation: Create well-structured Integration Procedures from requirements, selecting correct element types and wiring inputs/​outputs
  2. Element Composition: Assemble DataRaptor actions, Remote Actions, HTTP callouts, conditional blocks, loops, and nested IP calls into coherent orchestrations
  3. Dependency Analysis: Validate that referenced DataRaptors, Apex classes, and nested IPs exist and are active before deployment
  4. Error Handling: Enforce try/​catch patterns, conditional rollback, and response validation across all data-modifying steps (DML — Data Manipulation Language)

CRITICAL: Orchestration Order

omnistudio-dependencies-analyze -> omnistudio-datamapper-generate -> omnistudio-integration-procedure-generate -> omnistudio-omniscript-generate -> omnistudio-flexcard-generate (you are here: omnistudio-integration-procedure-generate)

Data Mappers referenced by the IP must exist FIRST. Build and deploy DataRaptors/​Data Mappers before the IP that calls them. The IP must be active before any OmniScript or FlexCard can invoke it.


Key Insights

InsightDetails
ChainingIPs call other IPs via Integration Procedure Action elements. Output of one step feeds input of the next via response mapping. Design data flow linearly where possible.
Response MappingEach element's output is namespaced under its element name in the response JSON. Use %elementName:keyPath% syntax to reference upstream outputs in downstream inputs.
CachingIPs support platform cache for read-heavy orchestrations. Set cacheType and cacheTTL in the procedure's PropertySet. Avoid caching procedures that perform DML.
VersioningType/​SubType pairs uniquely identify an IP. Use SubType for versioning (e.g., Type=AccountOnboarding, SubType=v2). Only one version can be active at a time per Type/​SubType.

Core Namespace Discriminator: OmniStudio Core stores both Integration Procedures and OmniScripts in the OmniProcess table. Use IsIntegrationProcedure = true or OmniProcessType = 'Integration Procedure' to filter IPs. Without a filter, queries return mixed results.

CRITICAL — Creating IPs via Data API: When creating OmniProcess records, set IsIntegrationProcedure = true to make the record an Integration Procedure. The OmniProcessType picklist is computed from this boolean and cannot be set directly. Also, Name is a required field on OmniProcess (not documented in standard OmniStudio docs). Use sf api request rest --method POST --body @file.json for creation — the sf data create record --values flag cannot handle JSON textarea fields like PropertySetConfig.


Workflow Design (5-Phase Pattern)

Phase 1: Requirements Gathering

Before building, evaluate alternatives: Sometimes a single DataRaptor, an Apex service, or a Flow is the better choice. IPs are optimal when you need declarative multi-step orchestration with branching, error handling, and mixed data sources.

Ask the user to gather:

  • Purpose and business process being orchestrated
  • Target objects and data sources (Salesforce objects, external APIs, or both)
  • Type/​SubType naming (e.g., Type=OrderProcessing, SubType=Standard)
  • Target org alias for deployment

Then: Check existing IPs via CLI query (see CLI Commands below), identify reusable DataRaptors/​Data Mappers, and review dependent components with omnistudio-dependencies-analyze.

Phase 2: Design & Element Selection

Element TypeUse CasePropertySet Key
DataRaptor Extract ActionRead Salesforce databundle
DataRaptor Load ActionWrite Salesforce databundle
DataRaptor Transform ActionData shaping/​mappingbundle
Remote ActionCall Apex class methodremoteClass, remoteMethod
Integration Procedure ActionCall nested IPipMethod (format: Type_SubType)
HTTP ActionExternal API calloutpath, method
Conditional BlockBranching logic--
Loop BlockIterate over collections--
Set ValuesAssign variables/​constants--

Naming Convention: [Type]_[SubType] using PascalCase. Element names within the IP should describe their action clearly (e.g., GetAccountDetails, ValidateInput, CreateOrderRecord).

Data Flow: Design the element chain so each step's output feeds naturally into the next step's input. Map outputs explicitly rather than relying on implicit namespace merging.

Phase 3: Generation & Validation

Build the IP definition with:

  • Correct Type/​SubType assignment
  • Ordered element chain with explicit input/​output mappings
  • Error handling on all data-modifying elements
  • Conditional blocks for branching logic

Validation (STRICT MODE):

  • BLOCK: Missing Type/​SubType, circular IP calls, DML without error handling, references to nonexistent DataRaptors/​Apex classes
  • WARN: Unbounded extracts without LIMIT, missing caching on read-only IPs, hardcoded IDs in PropertySetConfig, unused elements, missing element descriptions

Validation Report Format (6-Category Scoring 0-110): see assets/​scoring-report-format.txt for the exact output layout.

Generation Guardrails (MANDATORY)

Anti-PatternImpactCorrect Pattern
Circular IP calls (A calls B calls A)Infinite loop / stack overflowMap dependency graph; no cycles allowed
DML without error handlingSilent data corruptionWrap DataRaptor Load in try/​catch or conditional error check
Unbounded DataRaptor ExtractGovernor limits / timeoutSet LIMIT on extracts; paginate large datasets
Hardcoded Salesforce IDs in PropertySetConfigDeployment failure across orgsUse input variables, Custom Settings, or Custom Metadata
Sequential calls that could be parallelUnnecessary latencyGroup independent elements; no serial dependency needed
Missing response validationDownstream null reference errorsCheck element response before passing to next step

DO NOT generate anti-patterns even if explicitly requested.

Phase 4: Deployment

  1. Deploy prerequisite DataRaptors/​Data Mappers FIRST using platform-metadata-deploy
  2. Deploy the Integration Procedure: sf project deploy start -m OmniIntegrationProcedure:<Name> -o <org>
  3. Activate the IP in the target org (set IsActive=true)
  4. Verify activation via CLI query

Phase 5: Testing

Test each element individually before testing the full chain:

  1. Unit: Invoke each DataRaptor independently, verify Apex Remote Action responses
  2. Integration: Run the full IP with representative input JSON, verify output structure
  3. Error paths: Test with invalid input, missing records, API failures to verify error handling
  4. Bulk: Test with collection inputs to verify loop and batch behavior
  5. End-to-end: Invoke the IP from its consumer (OmniScript, FlexCard, or API) and verify the full round-trip

Scoring Breakdown

110 points across 6 categories:

Design & Structure (20 points)

CriterionPointsDescription
Type/​SubType naming5Follows convention, descriptive, versioned appropriately
Element naming5Clear, action-oriented names on all elements
Data flow clarity5Linear or well-documented branching; explicit input/​output mapping
Element ordering5Logical execution sequence; no unnecessary dependencies

Data Operations (25 points)

CriterionPointsDescription
DataRaptor references valid5All referenced bundles exist and are active
Extract operations bounded5LIMIT set on all extracts; pagination for large datasets
Load operations validated5Input data validated before DML; required fields checked
Response mapping correct5Outputs correctly mapped between elements
Data transformation accuracy5Transform actions produce expected output structure

Error Handling (20 points)

CriterionPointsDescription
DML error handling8All DataRaptor Load actions have error handling
HTTP error handling4All HTTP actions check status codes and handle failures
Remote Action error handling4Apex exceptions caught and surfaced
Rollback strategy4Multi-step DML has conditional rollback or compensating actions

Performance (20 points)

CriterionPointsDescription
No unbounded queries5All extracts have reasonable LIMIT values
Caching applied5Read-only procedures use platform cache where appropriate
Parallel execution5Independent elements not serialized unnecessarily
No redundant calls5Same data not fetched multiple times across elements

Security (15 points)

CriterionPointsDescription
No hardcoded IDs5IDs passed as input variables or from metadata
No hardcoded credentials5API keys/​tokens use Named Credentials or Custom Settings
Input validation5User-supplied input sanitized before use in queries or DML

Documentation (10 points)

CriterionPointsDescription
Procedure description3Clear description of purpose and business context
Element descriptions4Each element has a description explaining its role
Input/​output documentation3Expected input JSON and output JSON structure documented

CLI Commands

Read scripts/​cli-commands.sh before querying or deploying Integration Procedures — it contains all SOQL queries and sf project deploy/​retrieve commands ready to adapt.

Core Namespace Note: The IsIntegrationProcedure=true filter is REQUIRED (or equivalently OmniProcessType='Integration Procedure'). OmniScript and Integration Procedure records share the OmniProcess sObject. Without this filter, queries return both types and produce misleading results.


Cross-Skill Integration

From SkillTo omnistudio-integration-procedure-generateWhen
omnistudio-dependencies-analyze-> omnistudio-integration-procedure-generate"Analyze dependencies before building IP"
omnistudio-datamapper-generate-> omnistudio-integration-procedure-generate"DataRaptor/​Data Mapper is ready, wire it into IP"
platform-apex-generate-> omnistudio-integration-procedure-generate"Apex Remote Action class deployed, configure in IP"
From omnistudio-integration-procedure-generateTo SkillWhen
omnistudio-integration-procedure-generate-> platform-metadata-deploy"Deploy IP to target org"
omnistudio-integration-procedure-generate-> omnistudio-omniscript-generate"IP is active, build OmniScript that calls it"
omnistudio-integration-procedure-generate-> omnistudio-flexcard-generate"IP is active, build FlexCard data source"
omnistudio-integration-procedure-generate-> omnistudio-dependencies-analyze"Verify IP dependency graph before deployment"

Edge Cases

ScenarioSolution
IP calls itself (direct recursion)Block at design time; circular dependency check is mandatory
IP calls IP that calls original (indirect recursion)Map full call graph; omnistudio-dependencies-analyze detects cycles
DataRaptor not yet deployedDeploy DataRaptors first; IP deployment will fail on missing references
External API timeoutSet timeout values on HTTP Action elements; implement retry logic or graceful degradation
Large collection input to Loop BlockSet batch size; test with realistic data volumes to avoid CPU timeout
Type/​SubType collision with existing IPQuery existing IPs before creating; SubType versioning avoids collisions
Mixed namespace (Vlocity vs Core)Confirm org namespace; element property names differ between packages

Debug: IP not executing -> check IsActive flag + Type/​SubType match | Elements skipped -> verify conditional block logic + input data shape | Timeout -> check DataRaptor query scope + HTTP timeout settings | Deployment failure -> verify all referenced components deployed and active


Output Expectations

Deliverables produced by this skill:

  • Integration Procedure JSON (assets/​omni-process-ip.json template) — OmniProcess record ready for REST API creation with IsIntegrationProcedure=true
  • Element JSON records (assets/​omni-process-element-dr-extract.json, assets/​omni-process-element-set-values.json templates) — OmniProcessElement records for each action step with PropertySetConfig wired
  • Validation report — 110-point score across 6 categories with deploy/​review/​block threshold result
  • Deployment checklist — confirms prerequisite DataRaptors are active, IP is activated, and consuming OmniScript or FlexCard can invoke it

Notes

API: Latest (check current Salesforce release notes; was 66.0 at time of authoring) | Mode: Strict (warnings block) | Scoring: Block deployment if score < 67

Dependencies (optional): platform-metadata-deploy, omnistudio-datamapper-generate, omnistudio-dependencies-analyze

Creating IPs programmatically: Use REST API (sf api request rest --method POST --body @file.json). Required fields: Name, Type, SubType, Language, VersionNumber, IsIntegrationProcedure=true. Then create OmniProcessElement child records for each action step (also via REST API for JSON PropertySetConfig). Activate by setting IsActive=true after all elements are created.


Reference File Index

FileWhen to read
assets/​omni-process-ip.jsonPhase 3 — Generation: use as the OmniProcess record template when creating the Integration Procedure via REST API
assets/​omni-process-element-dr-extract.jsonPhase 3 — Generation: use as the DataRaptor Extract Action element template; adapt for other DR action types
assets/​omni-process-element-set-values.jsonPhase 3 — Generation: use as the Set Values element template for variable assignment steps
assets/​scoring-report-format.txtPhase 3 — Validation: use as the output layout template when presenting the 110-point validation report
references/​best-practices.mdPhase 2-5 — Design patterns: element composition, error handling, caching, parallel execution, and security guidance
references/​element-types.mdPhase 2 — Element selection: read before configuring PropertySetConfig for any element type
scripts/​cli-commands.shPhase 1 & 4 — CLI queries and deploy/​retrieve commands; adapt by replacing <Name> and <org> placeholders

Pre-Delivery Checklist

  • Data Mappers exist and are deployed before IP references them
  • IsIntegrationProcedure = true set when creating via Data API
  • IP activated before any OmniScript/​FlexCard invokes it

More skills from forcedotcom

platform-apex-logs-debug logo
forcedotcom/sf-skills

platform-apex-logs-debug

Salesforce debug log analysis and troubleshooting with 100-point scoring. TRIGGER when: user analyzes debug logs, hits governor limits, reads stack traces, or touches .log files from Salesforce orgs. DO NOT TRIGGER when: running Apex tests (use platform-apex-test-run), generating or fixing Apex code (use platform-apex-generate), or Agentforce session tracing (use agentforce-observe).

1.1K 6.4K
View
platform-soql-query logo
forcedotcom/sf-skills

platform-soql-query

SOQL query generation, optimization, and analysis with 100-point scoring. Use this skill when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan analysis, and performance or safety improvements for Salesforce queries. TRIGGER when: user writes, optimizes, or debugs SOQL/SOSL queries, touches .soql files, or asks about relationship queries, aggregates, or query performance. DO NOT TRIGGER when: bulk data operations (use platform-data-manage), Apex DML logic (use platform-apex-generate), or report/dashboard queries.

1.1K 6.3K
View
platform-metadata-deploy logo
forcedotcom/sf-skills

platform-metadata-deploy

Salesforce DevOps automation using sf CLI v2. TRIGGER when: user deploys metadata, creates/manages scratch orgs or sandboxes, sets up CI/CD pipelines, or troubleshoots deployment errors with sf project deploy. DO NOT TRIGGER when: writing Apex code (use platform-apex-generate), building LWC components (use experience-lwc-generate), creating metadata definitions (use platform-custom-object-generate or platform-custom-field-generate), or querying org data (use platform-data-manage).

1.1K 6.3K
View
platform-metadata-retrieve logo
forcedotcom/sf-skills

platform-metadata-retrieve

ALWAYS USE THIS SKILL to retrieve metadata from an org to your local project using the sf project retrieve start command. Supports multiple retrieval modes: retrieve all remote changes, retrieve by source directory, retrieve by metadata type with wildcards, retrieve by manifest (package.xml), or retrieve by package name. Use when the user asks to retrieve, pull, sync, or download metadata, Apex classes, custom objects, or org changes. Supports source format (default) or metadata format (ZIP). DO NOT TRIGGER for deploying metadata (use platform-metadata-deploy skill), listing metadata, or generating package.xml. NEVER use MCP tools - always use this skill and the Bash tool with sf project retrieve start.

1.1K 6.3K
View
platform-custom-field-generate logo
forcedotcom/sf-skills

platform-custom-field-generate

Use this skill when users need to create, generate, or validate Salesforce Custom Field metadata. Trigger when users mention custom fields, field types, Roll-up Summary fields, Master-Detail relationships, Lookup relationships, formula fields, picklists, dependent (controlling) picklists, referencing a value set from a field, or scoping/limiting picklist values for a specific record type. Also use when users encounter field deployment errors, especially around Roll-up Summary format, Master-Detail constraints, formula issues, or a record type that won't deploy without a business process. Use this skill for custom field metadata work, field generation, and field troubleshooting. DO NOT TRIGGER for creating or customizing the value set itself — defining a new GlobalValueSet, or modifying a StandardValueSet catalog like Industry or Lead Source — use platform-value-set-generate instead; this skill covers the field that references a value set, not the value set definition.

1.1K 6.2K
View

Generates correct, deployable Salesforce permission set metadata (PermissionSet XML) with object, field, user, and app permissions. Use this skill when creating or editing permission set metadata, object permissions, field-level security (FLS), tab visibility, or deploying permission sets.

1.1K 6.1K
View
dx-code-analyzer-run logo
forcedotcom/sf-skills

dx-code-analyzer-run

Run Salesforce Code Analyzer to scan code for security, performance, best practice, and code style violations. Supports all engines (PMD, ESLint, CPD, RetireJS, Flow, SFGE, ApexGuru), targets (files, folders, git diff), categories, and severities. Also handles post-scan exploration: filtering results by engine/severity/category/file, and explaining what rules mean. TRIGGER when: user says 'scan my code', 'check security issues', 'run PMD/ESLint', 'find duplicates', 'analyze Flows', 'check vulnerable libraries', 'AppExchange review', 'lint my LWC', 'static analysis', 'code quality', 'show security violations', 'what is this rule', 'explain ApexCRUDViolation', 'filter results', or mentions engines/file types (.cls, .trigger, .js, .flow-meta.xml). Use this skill for scanning, exploring results, and listing rules. DO NOT TRIGGER when: user asks only about installation/configuration (use dx-code-analyzer-configure), or wants to create a custom rule (use dx-code-analyzer-custom-rule-create).

1.1K 6.1K
View
automation-flow-generate logo
forcedotcom/sf-skills

automation-flow-generate

Generate Salesforce Flows using the MCP tool execute_metadata_action. Use when the user asks to create, build, or generate a flow — including Screen, Autolaunched, Record-Triggered (before/after-save), Scheduled. Also trigger for flow-like requests such as "when a record is created", "trigger daily at", "send an email when", "update the field when", "automate", "workflow", or "flow XML/metadata". This is the only skill for Salesforce Flow generation.

1.1K 6K
View
platform-custom-object-generate logo
forcedotcom/sf-skills

platform-custom-object-generate

Use this skill when users need to create, generate, or validate Salesforce Custom Object metadata. Trigger when users mention custom objects, creating objects, object metadata, .object files, sharing models, name fields, or validation rules on objects. Also use when users say things like "create a custom object", "generate object metadata", "set up an object for...", or when they're troubleshooting object deployment errors especially around sharing models and Master-Detail relationships. Always use this skill for any custom object metadata work, including enriching and keeping the object's description current whenever its fields or validation rules change. Do NOT use this skill for non-Custom-Object metadata (Apex, Flows, LWC, Permission Sets, Custom Metadata Types) or for standard Salesforce objects.

1.1K 6K
View
platform-data-manage logo
forcedotcom/sf-skills

platform-data-manage

Salesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use platform-soql-query), Apex test execution (use platform-apex-test-run), or metadata deployment (use platform-metadata-deploy).

1.1K 5.9K
View
experience-lwc-generate logo
forcedotcom/sf-skills

experience-lwc-generate

Lightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use platform-apex-generate), Aura components, or Visualforce.

1.1K 5.9K
View
design-systems-slds-apply logo
forcedotcom/sf-skills

design-systems-slds-apply

Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons. Use when building any UI that needs SLDS, choosing between Lightning Base Components and SLDS Blueprints, applying styling hooks for theming, using utility classes for layout and spacing, or selecting icons. Triggers include "build a modal", "create a form", "data table", "SLDS styling", "style with hooks", "add an icon".

1.1K 5.8K
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View