A managed package is the container a SaaS company uses to ship its product into customers' Salesforce orgs as a native app that it can keep upgrading. It carries your namespace, hides parts of your code, and is the package type Salesforce reviews before you can list on AgentExchange (formerly AppExchange). Salesforce's managed packaging overview calls managed packages "the tool that Salesforce partners use to create business apps."
For a SaaS company the real decision is rarely managed versus unmanaged. It is whether to take the managed package through security review, because several of the things buyers expect, like push upgrades and Apex that runs in Professional Edition, only work after review. Appnigma builds these apps for SaaS teams. Its marketplace apps projects deliver "a native app, marketplace listing preparation, and review support." If you are an admin sharing a template inside one company, our post on when an unmanaged package is the right call fits better.
Updated October 2026. Checked against Salesforce's second-generation packaging guide, the ISVforce Guide and the Apex Developer Guide. The earlier version said external client apps only work in 2GP, that a namespace can never be transferred, and that an unmanaged package can't be converted. Salesforce documents all three differently. This update also adds unlocked packages, what review changes for an installed package, and the mistakes that are hard to undo after release.
Managed, unlocked and unmanaged packages compared
Salesforce has three package types, and only one is meant for selling to other companies' orgs. An unmanaged package copies components into the customer's org once and then belongs to them. An unlocked package is upgradeable but leaves the metadata open. Salesforce's unlocked packages page says "unless you plan to distribute an app on AppExchange, an unlocked package is the right package type for most use cases."
| Managed (1GP or 2GP) | Unlocked | Unmanaged | |
|---|---|---|---|
| Upgrades after install | Yes, including push upgrades after review | Yes | No, it becomes the customer's metadata |
| Namespace | Required | Optional | None |
| Code and metadata protection | Apex classes, flows and custom metadata types are IP protected | None | None |
| Security review and listing | Required to list | Doesn't go through review | Not accepted |
| License Management App | Supported | Not supported | Not supported |
| Built for | Selling to customer orgs | Internal apps and proofs of concept | Templates and one-off sharing |
Salesforce's Multi-Framework packaging page draws the same line in one sentence, "Use managed packages for listing on AppExchange or customer distribution." The security review required materials page adds "We can't accept an unmanaged or beta package."
Within managed packaging there are two generations. First-generation (1GP) packages live in a packaging org, and each package needs its own namespace. Second-generation (2GP) packages are built from source control with a Dev Hub, and several packages can share one namespace, per Why Switch to 2GP. That is why the common advice to build a managed package in a Developer Edition org only describes 1GP. Salesforce's comparison page recommends enabling Dev Hub in your Partner Business Org for 2GP. Salesforce's managed packaging overview puts its advice plainly, "we recommend that everyone use managed 2GPs to create new apps." If you already ship 1GP, our 1GP to 2GP migration guide covers the conversion.
What a customer can see and change after installing your package
IP protection is narrower than most explainers suggest. Salesforce's 2GP component table marks each component type, and for protected ones "the component's metadata, such as Apex code or Custom Metadata record information, is hidden in the installed org."
| Component | Hidden from the customer? | What the customer can change |
|---|---|---|
| Apex class | Yes | Nothing, only you can edit the code |
| Apex trigger | No | Nothing, but the code is visible |
| Lightning web component | No | Nothing, but the markup and JavaScript are visible |
| Flow | Yes, unless it is a template or overridable | Label, description and status |
| Custom object and field | No | Some settings, such as help text and field history tracking |
| Permission set | No | Nothing in the packaged permissions |
| Page layout | No | Everything except the layout name |
Two rows surprise engineering teams. Triggers and Lightning web components are readable in the customer's org, so business logic you want to protect belongs in an Apex class the trigger calls. Page layouts are the opposite problem. The same table says a layout's "Component Is Updated During Package Upgrade" value is No, so a layout change you ship in version 2 reaches new installs only. Existing customers keep the layout they had.
The editable settings work the same way. Salesforce's editable properties page says that when both you and the subscriber can edit a property, your "changes are only applied to new subscriber installs." That is deliberate. It "prevents a package upgrade from overwriting changes made by the subscriber," so plan any change to a shared setting as a release note for admins, not a silent fix.
What security review changes for an installed package
A managed package installs without review, which is why some SaaS teams ship one privately to a few design partners first. That works for a pilot. It stops working once customers expect upgrades, stability and broad edition support, because review is what turns several platform behaviors on.
| Without security review | After the package passes review |
|---|---|
| Customers see a notice at install that the package isn't authorized | No notice |
| You can't push upgrades, so each customer installs new versions | Push upgrades on request through Partner Support |
| Your code shares the org's per-transaction governor limits | Your namespace gets its own limits for most per-transaction counts |
| Apex doesn't run in Group or Professional Edition | Apex runs in those editions |
| Your objects, tabs and apps count against the edition's limits | Listed apps don't count toward those limits |
Each row has its own source. The install notice is on Install Notifications for Unauthorized Managed Packages. Push upgrades are "only available to first- and second-generation managed packages that have passed the AgentExchange security review." The edition design scenarios page says "Apex doesn't normally run in Group and Professional Editions" until the package is authorized in review. The install FAQ covers the object limits.
The governor limit row matters most for a product that runs inside busy orgs. Per the Apex limits page, certified managed packages "get their own set of limits for most per-transaction limits," and "namespaces in non-certified packages don't have their own separate governor limits." Here is the arithmetic, from the documented 100 synchronous SOQL queries per transaction. Say a customer's own triggers already run 80 queries when an Opportunity saves, and your trigger fires in the same transaction with 25. Without review the transaction needs 105 of a shared 100 and fails with a limit error, in the customer's org, on their record. After review your 25 count against your own 100. CPU time and heap stay shared either way, so review buys you query and DML headroom, not unlimited processing. Our governor limits guide has the full shared and separate list.
Plan for the review itself as a project with its own timeline. Salesforce scans the package and tests "wherever the customer goes, we go," including external endpoints that receive Salesforce data, per the required materials page. Our post on how long the security review takes breaks down the stages.
Can you convert an unmanaged package to a managed package?
Yes, in first-generation packaging, but existing installs don't come with it. Salesforce's conversion page has you register a namespace, open Package Manager, then "Edit the package that you want to make managed, then select Managed." The same page tells you to warn current installers first. They export their data, uninstall the unmanaged version, install the managed one and import the data again. For a SaaS company with paying customers on an unmanaged package, that is a migration project for every customer, which is the strongest reason to start managed.
Choosing a namespace you can't take back
Your namespace is the prefix Salesforce adds to every component, so a field called Insurance_Agent__c ships as Acme__Insurance_Agent__c, per the 2GP namespace guide. It is registered in a Developer Edition org and linked to your Dev Hub. Salesforce's linking page is blunt about the result, "After you associate a namespace with an org, you can't change it or reuse it."
The choice that matters for a SaaS company is shared or separate. 2GP lets several packages share a namespace, which makes it easy to call public Apex across your own packages. The namespace guide points out the trade-off. A product "you intend to sell or spin off" is better on its own namespace, because a unique namespace "enables you to transfer the namespace with the package." If an acquirer might one day want one product line and not the others, decide that before your first release.
Mistakes that are hard to undo after release
Most packaging regrets come from decisions that look reversible during the build and aren't once a customer installs the package.
- Promoting a version too early. In 2GP every version is beta until promoted, betas install only in scratch orgs and sandboxes, and Salesforce's promotion page says "you can't reverse the promotion."
- Marking Apex global without a reason. The component table lets you remove an Apex class only "if not set to
globalaccess," so every global class becomes a permanent public API. - Assuming components can be deleted. "Removing components from managed 1GP or 2GP packages requires approval from Salesforce," and removed components stay in the customer's org after they upgrade, per the same table.
- Leaving licensing to the platform in LWC. The table also says Lightning web components "don't automatically enforce managed package licensing." Check the user's license with
UserInfo.isCurrentUserLicensedin the Apex your component calls. Our LWC licensing guide shows the pattern. - Building new authentication on a connected app. Salesforce's ISV security page says "Starting in the Spring ‘26 release, you can't create new Connected Apps. Use ECAs instead." External client apps can be packaged in 1GP or 2GP, per Package Connected Apps in 2GP, with 2GP the recommended path.
Frequently Asked Questions
Do I need a managed package to sell on AgentExchange?
Yes, for an app that installs into the customer's org. Security review only accepts a managed released package, and listing follows review. API-only and consulting listings are separate types without a package.
Is a managed package the same as an AgentExchange app?
No. The package is what customers install, and the listing is the storefront page. You can install a managed package privately without ever creating a listing, though it won't get the review benefits above.
Should our SaaS integration use a managed or an unlocked package?
Managed, if it goes into customer orgs you don't control. Salesforce positions unlocked packages for internal business apps, and they don't go through review or support license management.
Can Appnigma build and maintain our managed package?
Yes. Appnigma's marketplace apps projects build "a Salesforce managed package or HubSpot app built around your product and customer workflows," with listing preparation and review support. Upkeep after launch is a separate maintenance retainer, and Salesforce runs the review on its own timing.
About the author
Sunny Chauhan is the co-founder and CEO of Appnigma AI, which builds and maintains customer integrations and native Salesforce and HubSpot apps for B2B SaaS teams. Before Appnigma, he was on Salesforce's AppExchange team, where he worked with more than 300 SaaS partners. He has spent close to a decade on the Salesforce platform, including work at Zennify, and holds Salesforce certifications including Platform Developer II, Platform App Builder, Administrator, Data Cloud Consultant, and AI Associate.
Related Articles
- How to create and upgrade a managed package
- Building a managed package without an in-house Salesforce developer
- How push upgrades handle customer customizations
- Preparing a managed package for security review
- What AgentExchange changed for ISVs
- What a Salesforce ISV is
Sources
- Use Managed Packages to Develop Your AgentExchange Solution, ISVforce Guide
- Why Switch to Second-Generation Managed Packaging?, Second-Generation Managed Packaging Developer Guide
- Unlocked Packages, Salesforce DX Developer Guide
- Package Your App for Distribution, Multi-Framework Developer Guide
- Components Available in Second-Generation Managed Packages and Editable Properties After Package Promotion or Installation
- Security Review Required Materials, ISVforce Guide
- Install Notifications for Unauthorized Managed Packages and Push a Package Upgrade for 2GP
- Sample Design Scenarios for Group and Professional Editions and AgentExchange Install FAQ
- Execution Governors and Limits, Apex Developer Guide
- Convert Unmanaged Packages to Managed, First-Generation Managed Packaging Developer Guide
- Namespaces for Second-Generation Managed Packages and Link a Namespace to a Dev Hub Org
- Get Ready to Promote a 2GP Version
- Secure Your Connected Apps and External Client Apps and Package Connected Apps in 2GP