Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Public Sector Documentation
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
          Dynamic Assessments Migration

          Dynamic Assessments Migration

          Use Metadata APIs to migrate your Dynamic Assessments from sandbox to production, or from one org to another. Reduce manual effort and avoid the need to recreate the Dynamic Assessment setup in each org.

          Required Editions

          View supported product editions.
          User Permissions Needed
          To access Dynamic Assessments: Dynamic Assessment Access permission set
          To assign permission sets:

          View Setup and Configuration

          AND

          Assign Permission Sets

          To use Metadata API:

          Modify Metadata Through Metadata API Functions

          OR

          Modify All Data

          To configure import or export settings: Customize Application

          Here’s a list of the metadata types that retrieve and deploy metadata from the Dynamic Assessments components:

          Dynamic Assessments Component Metadata Type
          Action plan templates ActionPlanTemplate

          Assessment questions

          AssessmentQuestion

          Omniscripts: Omni processes and their linked omni assessment tasks

          Omniscript

          Requirements for Dynamic Assessments Migration

          Before you migrate Dynamic Assessments, complete these prerequisites. You can use one of these Salesforce integrated tools to migrate the metadata: Salesforce CLI and Visual Source Code Extensions.

          General Considerations

          • If you’re new to Salesforce Metadata APIs, review Understanding Metadata APIs.
          • Make sure the manifest file includes the active version of all assessment questions from the omni assessment task associated with the omni process.
          • See the considerations from the Usage Type section in Omniscript.
          • To migrate updates to an action plan template that was migrated earlier, clone the action plan template, change it, and then migrate it.
          • To migrate a read-only or published action plan template that was created in a Winter '25 or earlier org, you must re-create it first. If you don’t, the migrated template will not include the link to the associated omni assessment task, causing Dynamic Assessments to fail.

          Prerequisites for Source and Target Orgs

          • For an admin user to migrate Dynamic Assessments, assign the Dynamic Assessment Access permission set.
          • For a standard user to migrate Dynamic Assessments, complete these tasks:
            • In the Dynamic Assessment Access permission set, enable the Migrate Dynamic Assessments Data system permission, and assign the permission set to the user.
              System Permissions in Dynamic Assessment Access permission set

              See View and Assign Permission Sets.

            • On the standard user profile, enable these permissions:
              • Modify Metadata Through Metadata API Functions

              • View Setup and Configuration

              • Customize Application

              See Set Up User Profiles.

          • Enable Omnistudio Metadata API support.
            1. In Setup, find and select Omnistudio Settings.
            2. Turn on Omnistudio Metadata.
          • Enable Discovery Framework metadata APIs to retrieve and deploy assessment questions, assessment question versions, and assessment question sets.
            1. From Setup, in the Quick Find box, enter Discovery Framework, and then under Discovery Framework, select General Settings.
            2. Turn on Import or Export.
          • Install and configure the migration tool that you want to use: Salesforce CLI or Visual Studio Code. See the documentation links for these Migration Features in Replacement Tools for Workbench:
            • Migration > Deploy
            • Migration > Retrieve
          • Log in and authenticate the source and target orgs. See Salesforce DX Developer Guide.

          Prepare the Source Org

          Prepare the Target Org

          See Dynamic Assessments Prerequisites.

          Prepare the Manifest File

          Create a package.xml manifest file on your local file system. Then, save the manifest file in the Salesforce DX project directory in your source org.

          You can migrate all or specific records of Dynamic Assessments from the source org. For specific records, copy the Unique Name values of the specific records of these objects and add them to the manifest file:

          • Action plan template
          • Assessment question
          • Omni process associated with the Omniscript
          Note
          Note Make sure the manifest file includes the active version of all assessment questions from the omni assessment task associated with the omni process. Otherwise, migration fails.

          Here are a couple of sample manifest files.

          Sample manifest file 1: Retrieves all action plan templates, assessment questions, and Omniscripts
          <?xml version="1.0" encoding="UTF-8"?>
          <Package
          xmlns="http://soap.sforce.com/2006/04/metadata">
          <types>
          <members>*</members>
          <name>ActionPlanTemplate</name>
          </types>
          <types>
          <members>*</members>
          <name>AssessmentQuestion</name>
          </types>
          <types>
          <members>*</members>
          <name>OmniScript</name>
          </types>
          <version>63.0</version>
          </Package>
          
          Sample manifest file 2: Retrieves specified action plan template, assessment question, and Omniscript
          <?xml version="1.0" encoding="UTF-8"?>
          <Package 
          xmlns="http://soap.sforce.com/2006/04/metadata">
          <types>        
          <members>FireSafetyAPT_04f26088_a293_11ef_a2f9_b342e7b5849f</members>
          <name>ActionPlanTemplate</name>
          </types>
          <types>
          <members>FireSafetyBasic</members>
          <name>AssessmentQuestion</name>
          </types>
          <types>
          <members>FireSafetyOSD_FireSafetyOSD_English_1</members>
          <name>OmniScript</name>
          </types>
          <version>63.0</version>
          </Package>
          

          See Sample package.xml Manifest Files.

          Use Metadata APIs to Migrate Dynamic Assessments

          Retrieve the Dynamic Assessments metadata from the source org by using the manifest file. Then, deploy the metadata to the target org.

          1. Retrieve the Dynamic Assessments metadata from the source org.
            Sample command:
            sf project retrieve start --manifest ./manifest/package.xml --target-org MySourceOrg
                      --output-dir ./metadata

            Here, the metadata retrieved from the manifest file, package.xml, is saved in the metadata directory.

          2. Deploy the Dynamic Assessments metadata to the target org.
            Sample command:
            sf project deploy start --source-dir ./metadata --target-org MyTargetOrg --wait 10

            Here, metadata specifies the directory that contains the manifest file to be deployed. Also, —wait 10 indicates that the command waits for 10 minutes to finish before timing out.

          In the target org, clone and publish the migrated action plan templates. Your users can now use these action plan templates to create action plans.

           
          Loading
          Salesforce Help | Article