Supported Metadata Channels
- Second-Generation Managed Packages
-
Managed packages are used by Salesforce partners to distribute and sell applications to customers.
- Unlocked Packaging
-
Unlocked packages are especially suited for internal business apps. You can use unlocked packages to organize your existing metadata, package an app, extend an app that you’ve purchased from AppExchange, or package new metadata.
- Unmanaged Package
-
Unmanaged packages are typically used to distribute open-source projects or application templates to provide developers with the basic building blocks for an application.
- Change Sets
-
Use change sets to send customizations from one Salesforce org to another. For example, you can create and test a new object in a sandbox org, then send it to your production org using a change set.
- Salesforce CLI
-
Salesforce CLI is the client-side tool at the center of the modern Salesforce developer experience. It’s a command-line interface that simplifies development and build automation when working with Salesforce orgs. Use it to create and manage orgs, synchronize metadata to and from orgs, create and install packages, and more.
- Source Control Integration/Source-Driven Development
-
A scratch org is a source-driven and disposable deployment of Salesforce code and metadata. A scratch org is fully configurable, allowing developers to emulate different Salesforce editions with different features and preferences.
Usage
- When you deploy metadata with a managed package, the namespace is inserted in setup and platform objects.
- When a dataset is deployed using a change set, the created setup object record has the namespace of the target org only. The created platform object record has the Null namespace.
- When deploying a beta or released version of the managed package in a target org, the installation creates both setup and platform objects for AssessmentQuestion and AssessmentQuestionSets. The setup object and developerName of the platform object for AssessmentQuestion and AssessmentQuestionSets are not editable in a target org. Assessment questions in Beta packages are also not editable.
- You can update or upgrade a released version of the managed package. Setup and platform objects for AssessmentQuestion and AssessmentQuestionSets are updated if there are changes in the upgraded version.
- Uninstalling the beta version of the managed package deletes the metadata from the target org. Setup objects are deleted for AssessmentQuestion and AssessmentQuestionSets.
- When using a scratch org,
- Create the scratch org definition with:
{ "orgName": "Sample Org", "edition": "developer", "features": [ "ASSESSMENTS" ], "settings": { "industriesSettings": { "enableIndustriesAssessment": true, "enableDiscoveryFrameworkMetadata": true } } }
- Enabling Discovery Framework (ASSESSMENTS) enables both AssessmentQuestion and AssessmentQuestionSet and enabling enableDiscoveryFrameworkMetadata enables the metadata for both AssessmentQuestion and AssessmentQuestionSet.
- Add the Assessment to the page layout. See Page Layouts in Salesforce Help for more information.
- Create the scratch org definition with:
- Deploying or retrieving the OmniScript metadata API for Discovery Framework is supported only in Change Sets, Salesforce CLI, Source Control Integration/Source-Driven Development, and public metadata API channels only.