You are here:
Export or Import an Omnistudio Integration Procedure
Export or import Integration Procedures to use them in another org, such as when you create them in a sandbox. When exporting or importing data packs for Integration Procedures, if you encounter Apex limit errors such as heap or CPU limits, reduce the size of the data pack by unselecting dependencies during the export process. Additionally, break the data pack into multiple smaller data packs. As a best practice, we recommend including no more than 10 elements in each data pack.
Export an Integration Procedure
You can export an Integration Procedure by using the Salesforce CLI.
Before you begin:
- Set up Salesforce CLI
- If you want to export Integration Procedures that call associated Data Mappers, see Export or Import Omnistudio Data Mappers and complete the steps.
-
From a terminal in VS Code, enter this command, and replace the variables with values
for your org.
sf data export tree --query "SELECT IsMetadataCacheDisabled, IsTestProcedure, Description, OverrideKey, Name, OmniProcessKey, Language, PropertySetConfig, LastPreviewPage, OmniProcessType, ElementTypeComponentMapping, SubType, ResponseCacheType, IsOmniScriptEmbeddable, CustomJavaScript, IsIntegrationProcedure, VersionNumber, DesignerCustomizationType, Namespace, Type, RequiredPermission, WebComponentKey, IsWebCompEnabled,(SELECT Description, DesignerCustomizationType, Name, EmbeddedOmniScriptKey, IsActive, Type, ParentElementId, PropertySetConfig, SequenceNumber, Level, Id from OmniProcessElements) from OmniProcess where OmniProcessType='Integration Procedure' AND id='integration_procedure_id'" --target-org org_alias --plan --output-dir export_directory - Verify whether the file in JSON format is downloaded in the directory.
- Run the import command.
Import an Integration Procedure
You can import an Integration Procedure by using the Salesforce CLI.
Before you begin, Set Up Salesforce CLI.
sf data import tree --plan ./export_directory/OmniProcess-OmniProcessElement-plan.json --target-org org_alias
- org_alias
- The alias of the org where you’re importing.
- export_directory
- The directory in the project where the exported JSON is stored.
Export an Integration Procedure from the Designer on a Managed Package
If you're using the designer on a managed package, you can export an Integration Procedure from the Integration Procedure Home page.
- From the App Launcher, find and select Omnistudio Integration Procedures.
- Select the version of the Integration Procedure that you want to export.
-
Click
.
- Select the item to export, and click Next.
- Review the item to export, and click Next.
- If needed, update the Name and Description.
- To store the data pack and access it later from the Omnistudio DataPacks tab, select Add to Library.
- To download the data pack to your computer, select Download.
- Click Done.
Import an Integration Procedure to the Designer on a Managed Package
If you're using the designer on a managed package, you can import an Integration Procedure from the Integration Procedure Home page.
- From the App Launcher, find and select Omnistudio Integration Procedures.
- Click Import.
- Click Browse, select a data pack from your computer that you want to upload, and click Open.
- Click Next.
- Select the item to import, and click Next.
- Review the item to import.
- Click Next and then Done.

