| Available in: Salesforce Classic (not available in all
orgs) and Lightning Experience |
| Available in: Developer Edition Package uploads and installs are available in
Group, Professional, Enterprise, Performance, Unlimited,
and Developer Editions
|
Salesforce has two ways that you can build managed packages,
first-generation packaging (1GP) and second-generation packaging (2GP). This
guide describes 1GP. For new solutions, use 2GP as described in the Second-Generation Managed Packages section of the Salesforce
DX Developer Guide.
A managed package is a collection of application components that are posted as a unit on
AppExchange, and are associated with a namespace and a License Management Organization.
- You must use a Developer Edition organization to create and work
with a managed package.
-
Managed packages are depicted by the following
icons:
-
Managed - Beta
-
Managed - Released
-
Managed - Installed
To prevent naming conflicts, Salesforce recommends
using managed packages for all packages that contain Apex to ensure that all Apex
objects contain your namespace prefix. For example, if an Apex class is called
MyHelloWorld and your org’s namespace
is OneTruCode, the class is referenced as
OneTruCode.MyHelloWorld.