Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Export or Import an Omnistudio Data Mapper

          Export or Import an Omnistudio Data Mapper

          Export or import Data Mappers to use them in another org, such as when you create them in a sandbox. When exporting or importing data packs for Data Mappers, 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 a Data Mapper

          You can export a Data Mapper from the new designer with the Salesforce CLI.

          Before you begin,Set Up Salesforce CLI

          1. From a terminal in VS Code, enter this command, and replace the listed variables with the appropriate values.
            sf data export tree --query "SELECT Id, SourceObject,ExpectedInputOtherData,ExpectedOutputJson,Description,ExpectedOutputXml,IsDeletedOnSuccess,IsProcessSuperBulk,OverrideKey,PreviewOtherData,SynchronousProcessThreshold,TargetOutputDocumentIdentifier,GlobalKey,Name,IsAssignmentRulesUsed,IsXmlDeclarationRemoved,XmlOutputTagsOrder,IsSourceObjectDefault,InputParsingClass,ExpectedOutputOtherData,PreviewSourceObjectData,OutputType,PreviewJsonData,IsRollbackOnError,BatchSize,ResponseCacheType,IsNullInputsIncludedInOutput,VersionNumber,OutputParsingClass,Type,IsErrorIgnored,ExpectedInputJson,ExpectedInputXml,RequiredPermission,PreviewXmlData,InputType,ResponseCacheTtlMinutes,TargetOutputFileName,IsFieldLevelSecurityEnabled,PreprocessorClassName, (SELECT Id,MigrationPattern,InputObjectQuerySequence,FormulaResultPath,FormulaSequence,LinkedFieldName,IsDisabled,MigrationCategory,MigrationType,OutputFieldName,MigrationValue,FilterGroup,LinkedObjectSequence,GlobalKey,Name,OutputCreationSequence,DefaultValue,LookupReturnedFieldName,IsRequiredForUpsert,MigrationProcess,FilterDataType,InputObjectName,FormulaExpression,LookupObjectName,MigrationAttribute,MigrationGroup,FilterValue,FilterOperator,InputFieldName,MigrationKey,IsUpsertKey,LookupByFieldName,OutputFieldFormat,TransformValueMappings,OutputObjectName FROM OmniDataTransformItems) FROM OmniDataTransform WHERE Id='data_mapper_id'" --target-org org_alias --plan --output-dir export_directory
            org_alias
            The alias of the org from where you’re exporting the Data Mapper.
            export_directory
            The directory in the project where the exported JSON file is stored.
            data_mapper_id
            The ID of the Data Mapper that you want to export. To export all Data Mappers, remove the WHERE clause.
          2. Verify whether the file in JSON format is downloaded in the directory.
          3. Run the import command.

          Import a Data Mapper

          You can import a Data Mapper from the new designer with the Salesforce CLI.

          Before you begin, Set Up Salesforce CLI.

          From a terminal in VS Code, enter this command, and replace the variables with values for your org.
          sf data import tree --plan ./export_directory/OmniDataTransform-OmniDataTransformItem-plan.json --target-org org_alias

          Export a Data Mapper with Designer on a Managed Package

          If you're using the designer on a managed package, you can export a Data Mapper from the Data Mapper Home page.

          1. From the App Launcher, find and select Omnistudio Data Mappers.
          2. Select the version of the Data Mapper that you want to export.
          3. Click download.
          4. Select the item to export, and click Next.
          5. Review the item to export, and click Next.
          6. If needed, update the name and description.
          7. To store the data pack and access it later from the Omnistudio DataPacks tab, select Add to Library.
          8. To download the data pack to your computer, select Download.
          9. Click Done.

          Import a Data Mapper with Designer on a Managed Package

          If you're using the designer on a managed package, you can import a Data Mapper from the Data Mapper Home page.

          1. From the App Launcher, find and select Omnistudio Data Mappers.
          2. Click Import.
          3. Click Browse, select a data pack from your computer that you want to upload, and click Open.
          4. Click Next.
          5. Select the item to import, and click Next.
          6. Review the item to import.
          7. Click Next and then Done.
           
          Loading
          Salesforce Help | Article