Create a Beta Package for First-Generation Managed Packages
Follow this procedure to create and upload a beta package through the UI. (You can
also upload a package using the Tooling API. For sample code and more details, see the
PackageUploadRequest object in the Tooling API Developer Guide.)
| User Permissions Needed | |
|---|---|
| To create packages: | Create AppExchange Packages |
| To upload packages: | Upload AppExchange Packages |
- Create a package:
- From Setup, enter Package Manager in the Quick Find box, then select Package Manager.
- Click New.
- Enter a name for your package. You can use a different name than what appears on AppExchange.
- From the dropdown menu, select the default language of all component labels in the package.
- Optionally, choose a custom link from the Configure Custom Link field to display configuration information to installers of your app. You can select a predefined custom link to a URL or s-control that you’ve created for your home page layouts; see the Configure Option. The custom link displays as a Configure link within Salesforce on AppExchange Downloads page and app detail page of the installer's organization.
- Optionally, in the Notify on Apex Error field, enter the username of the person to notify if an uncaught exception occurs in the Apex code. If you don’t specify a username, all uncaught exceptions generate an email notification that is sent to Salesforce. This option is only available for managed packages.
- Optionally, in the Notify on Packaging Error field, enter the email address of the person who receives an email notification if an error occurs when a subscriber’s attempt to install, upgrade, or uninstall a packaged app fails. This field appears only if packaging error notifications are enabled. To enable notifications, contact your Salesforce representative.
- Optionally, enter a description that describes the package. You can change this description before you upload it to AppExchange.
- Optionally, specify a post install script. You can run an Apex script in the subscriber organization after the package is installed or upgraded. For more information, see Running Apex on Package Install or Upgrade.
- Optionally, specify an uninstall script. You can run an Apex script in the subscriber organization after the package is uninstalled. For more information, see Running Apex on Package Uninstall.
- Click Save.
- Optionally, change the API access privileges. By default, API access is set to Unrestricted, but you can change this setting to further restrict API access of the components in the package.
-
Add the necessary components for your app.
- Click Add Components.
- From the dropdown list, choose the type of component.
- Select the components you want to add.
- Click Add To Package.
- Repeat these steps until you added all the components you want in your package.
- Optionally, click View Dependencies and review a list of components that rely on other components, permissions, or preferences within the package. To return to the Package detail page, click Done.
- Click Upload.
-
On the Upload Package page, do the
following:
- Enter a Version Name, such as Spring ’22. The version name is the marketing name for a specific release of a package and allows you to create a more descriptive title for the version than just a number.
- Enter a Version Number, such as 1.0. For more information on versions, see Update Your First-Generation Managed Package.
- Select a Release Type of Managed - Beta.
- (Optional) Enter and confirm a password to share the package privately with anyone who has the password. Don't enter a password if you want to make the package available to anyone on AppExchange and share your package publicly.
- Salesforce automatically selects the requirements it finds. In addition, select any other required components from the Package Requirements and Object Requirements sections to notify installers of any requirements for this package.
- Click Upload.
After your package has uploaded successfully, you receive an email with an installation link.