Create OmniStudio Integration Procedure
sf_create_integration_procedureCreate an OmniStudio Integration Procedure to orchestrate server-side data integration, combining DataRaptor, HTTP, and logic elements for use in OmniScripts, FlexCards, or APIs.
Instructions
Creates an OmniStudio Integration Procedure — a server-side process that orchestrates data integration without UI. Integration Procedures run in Apex context and can be invoked from OmniScripts, FlexCards, or APIs.
Integration Procedures use the OmniScript metadata type with omniProcessType=IntegrationProcedure. The fullName is ProcedureName_SubType.
Element types:
DataRaptor: call a DataRaptor for Salesforce CRUD
HTTPAction: call an external REST/SOAP API
Response: return data to the caller
Loop: iterate over a collection
Conditional: branch based on conditions
SetValues: set variables
ExceptionBlock: handle errors
Matrix: call a Calculation Matrix
OmniScript: call a nested OmniScript
Aggregate: combine multiple data sources
Set isActive: true to activate immediately after creation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| subType | Yes | Sub-type portion, e.g. 'GetDetails' — fullName = type_subType | |
| elements | No | Procedure elements (DataRaptor, HTTP calls, conditionals) | |
| isActive | No | Activate immediately after creation | |
| description | No | ||
| procedureName | Yes | Type portion of procedure key, e.g. 'Account' |