Package the Disclosures for Distribution
You can package your disclosures to distribute to other Salesforce users and organizations, including those outside your company.
Required Editions
| Available in: Lightning Experience |
| Available in: Developer Edition |
| User Permissions Needed | |
|---|---|
| To create questionnaire and Omnistudio form: | Omnistudio Admin |
| To create packages: | Create AppExchange Packages |
-
Create a manifest file package.xml for the Omnistudio components.
Here’s an example of a manifest file.
<?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>OMNISCRIPT_CONFIGURATION_API_NAME</members> <name>Omniscript</name> </types> <types> <members>DATA MAPPER1</members> <members>DATA MAPPER2</members> <name>OmniDataTransform</name> </types> <version>56.0</version> </Package> - Install and configure the Salesforce CLI. See Install Salesforce CLI.
-
To create a Salesforce DX project, open a command terminal and enter this command.
sf project generate --name MyProject -
To log in to your source org, enter this command:
sf org login web --instance-url ORG_URL -
To retrieve the Omniscript components as an XML file based on the manifest file, enter this
command:
sf project retrieve start --manifest PATH/package.xml --target-org USER_NAME -
Create a static resource from the Omniscripts components:
- From Setup, in the Quick Find box, enter Static Resources and select Static Resources.
- Click New.
- Enter a static resource name.
- Click Choose File to select the Omniscript XML file that you retrieved.
- To provide unrestricted access to the authenticated user, set cache-control to public.
-
Save your changes.
Verify that the static resource appears in the static resources list.
-
Create a managed package:
- From Setup, in the Quick Find box, enter Packages and select Package Manager.
- Click New.
- Enter a package name and select the default language of all component labels in the package.
- Enter the optional values.
- Select Managed.
- Save your changes.
-
Add components to your package.
- From Setup, in the Quick Find box, enter Packages and select Package Manager.
- Open the managed package you created.
- Click Add.
- From the Component Type dropdown, select AssessmentQuestionSetConfig.
- Select the components you want to add and click Add To Package.
- Repeat these steps for AssessmentQuestionConfig, DisclosureType, DisclosureDefinition, and DisclosureDefinitionVersion.
-
Add static components to your package.
- From Setup, in the Quick Find box, enter Packages and select Package Manager.
- Open the managed package you created.
- Click Add.
- From the Component Type dropdown, select Static Resource.
- Select the static resource that you created and click Add To Package.
- To upload the package to AppExchange, click Upload.
- Enter the version name and the version number.
-
Click Upload.
You can use the Installation URL to install the package. See Install Unlocked Packages from a URL.
Did this article solve your issue?
Let us know so we can improve!

