Short answer
Building the app is the straightforward part; packaging it correctly and passing security review is where most AppExchange projects lose their schedule. This guide covers managed versus unmanaged packages, the partner programme, what security review examines, multi-tenant design constraints, and the ongoing commitment of listing.
Package Types and Which You Need
Before anything else, decide what kind of package you are building, because the choice affects upgradeability, intellectual property protection, and whether you can list commercially.
| Package type | What it gives you | Use when |
|---|---|---|
| Unlocked package | Versioned deployment of metadata you own; subscribers can modify it | Internal use across your own orgs, or open distribution without IP protection |
| Second-generation managed (2GP) | Namespaced, upgradeable, source-driven, IP protected | Commercial distribution; the current standard for new ISV development |
| First-generation managed (1GP) | The older managed package model, built from a packaging org | Existing products only; not the choice for something new |
| Unmanaged package | A one-time copy of metadata with no upgrade path | Sample code and templates; not a product |
For a commercial application, second-generation managed packaging is the answer. It is source-driven, which means your package is built from version control rather than from the state of a packaging org — a significant improvement for any team with more than one developer.
The namespace decision comes early and is permanent. Your namespace prefixes every component in the package and cannot be changed afterwards, so choose something you will still want associated with the product in five years.
The Partner Programme and What It Involves
Listing on AppExchange requires membership of the Salesforce Partner Program as an ISV partner. This is an application and agreement process rather than a formality, and it carries commercial terms that affect your business model.
The most material of these is revenue sharing: Salesforce takes a percentage of revenue from applications distributed through AppExchange. The specifics are set out in the partner agreement and should be modelled into your pricing before you build, not discovered afterwards.
- You will need a Partner Business Org. This is where packages are managed, licences are issued, and the listing is maintained. It is not your production org.
- Environment Hub provides test orgs. You need to test against multiple editions, because your app will be installed into orgs configured in ways you cannot predict.
- Licence management is your responsibility. The License Management App tracks who has installed your package and what they are entitled to.
- The listing itself is marketing work. Description, screenshots, documentation, and demo content are reviewed and materially affect discoverability.
- Support expectations are contractual. You are agreeing to support subscribers, with response commitments.
Allow real time for the commercial and administrative track. Teams focused on engineering frequently treat this as paperwork and find it on the critical path two weeks before an intended launch.
Security Review: What It Examines and How to Pass
Every application listed on AppExchange must pass Salesforce security review, and it is the single most common cause of delay. Reviews can take several weeks, and a failure means remediation and resubmission.
The review covers both static analysis of your code and a manual assessment. It looks for the vulnerability classes that matter on a multi-tenant platform, and it is thorough.
| Area examined | What reviewers look for | How to prepare |
|---|---|---|
| CRUD and FLS enforcement | Code that reads or writes without checking the user is permitted to | Use WITH USER_MODE or enforce access explicitly; never assume the running user has rights |
| SOQL and SOSL injection | Dynamic queries built from unescaped input | Use bind variables; escape single quotes where dynamic queries are unavoidable |
| Cross-site scripting | Unescaped output in Visualforce, Aura, or LWC | Rely on platform escaping; justify every place you disable it |
| Insecure storage of secrets | API keys and credentials in code or custom settings | Use protected custom settings or Named Credentials; never hardcode |
| Sharing enforcement | Apex classes running without sharing where they should not | Declare sharing explicitly on every class and justify any exception |
| External connections | Unvalidated callouts, missing certificate validation | Use Named Credentials; document every external endpoint |
The most effective preparation
Run the Salesforce Code Analyzer and address every finding before submission, then have someone who did not write the code review it against the security requirements checklist. The majority of first-submission failures are issues these two steps would have caught, and each failure costs weeks.
Build in security review from the start of development rather than treating it as a gate at the end. Code written with access enforcement and parameterised queries as habits needs little remediation; code written without them needs a pass through every class.
Designing for Orgs You Have Never Seen
The deepest difference between building an app and building inside an org is that you cannot see the environment your code will run in. Your package will be installed into orgs with different editions, unknown customisations, other managed packages, and automation you have no visibility of.
- Assume governor limits are already partly consumed. Your trigger may run alongside three other packages' triggers in the same transaction. Bulkify everything and keep queries minimal.
- Do not assume standard objects are standard. Required custom fields, validation rules, and restrictive picklists will break naive record creation.
- Handle missing features gracefully. Person Accounts, multi-currency, state and country picklists, and Shield may or may not be enabled.
- Expect your package to be partially configured. An admin may not complete your setup steps. Fail with a clear message rather than an exception.
- Make test code independent. Use @isTest(SeeAllData=false) and create your own data; subscriber org data will not look like yours.
- Plan for uninstall. What happens to subscriber data when your package is removed? It is a question you will be asked.
Test on multiple editions through Environment Hub. An app that works in a Developer Edition org can fail in Professional Edition where certain features are unavailable, and discovering that from a subscriber support ticket is a poor way to find out.
Versioning, Upgrades, and Backwards Compatibility
Once customers have installed your package, every subsequent decision is constrained by backwards compatibility. This is the part of ISV development that differs most from ordinary project work, and it is permanent.
Managed packages enforce rules on what can change between versions. Global classes and methods you have published become part of your public contract. Fields cannot simply be deleted. Reducing the scope of anything you have exposed is generally not permitted.
| Change | Allowed? | Implication |
|---|---|---|
| Adding a field or object | Yes | Safe; the usual way to extend |
| Deleting a packaged field | Generally not | Deprecate and stop using it instead |
| Changing a global method signature | No | Add a new method; keep the old one working |
| Making a global class non-global | No | Think carefully before marking anything global |
| Changing a picklist value | Possible, with care | Subscriber data may reference the old value |
| Removing a component | Limited | Deprecation is the practical route |
The practical discipline is to expose as little as possible. Every global class, method, and field is a commitment you cannot withdraw. Keep your public surface deliberately small and expand it only when a subscriber need justifies the permanence.
The Ongoing Commitment Nobody Budgets For
Listing an application is not a project with an end date. It creates obligations that continue for as long as the listing exists, and underestimating them is the most common reason small ISVs struggle.
| Obligation | Cadence | Effort |
|---|---|---|
| Salesforce release compatibility | Three times a year | Test against each preview release before it goes live |
| Subscriber support | Continuous | Response commitments are contractual |
| Security review currency | Periodic re-review | Plan for it rather than being surprised |
| Licence management | Continuous | Provisioning, trials, expiry, and renewals |
| Listing maintenance | Quarterly | Screenshots, descriptions, and documentation drift |
| Platform deprecations | As announced | API version retirements and feature changes require work |
The release compatibility obligation is the one most consistently underestimated. Salesforce ships three major releases a year, each with a preview period during which you can test. An ISV that does not use those windows will eventually find out about a breaking change from a subscriber, which is both damaging and avoidable.
Should You Package at All?
Packaging adds substantial overhead, and for a surprising number of projects the answer is that it is not required.
- Building for your own organisation? Unlocked packages give you versioning and modularity without the ISV programme or security review.
- Deploying to a handful of client orgs? A deployment pipeline may be simpler and cheaper than a managed package.
- Is the value in the software or the service? Many consultancies package a solution and find that clients were really buying the implementation.
- Is the market large enough? AppExchange is competitive, and the ongoing obligations are fixed regardless of how many customers you have.
- Could this be a standalone application? If Salesforce integration is incidental, building outside the platform avoids every constraint described here.
Where you do have a genuine product, a market, and the appetite for the ongoing commitment, AppExchange offers distribution and credibility that are difficult to replicate. Just go in with the full picture rather than only the engineering estimate.
Frequently Asked Questions
Building for the AppExchange?
RASPSYS builds and packages Salesforce applications, including the second-generation packaging setup, security review preparation, and the multi-tenant design work that makes an app installable in orgs you have never seen.