Sub topic 9
Verifying the install and checking for side effects
This chapter covers what to check after a package lands in your sandbox. It assumes you can navigate Setup, you know the difference between profiles and permission sets, and you have installed the package with the AdminsOnly option as covered in the previous chapters. You also need the Salesforce CLI (sf) authenticated to the sandbox.
A successful install message only tells you that the package components were deployed. It does not tell you that the app behaves as the listing described, that it left your existing automation alone, or that it requested no more access than you expected. Verification closes that gap before anything reaches production.
What "installed" does and does not prove
When the installer reports success, Salesforce has created the package's components in your org. These can include custom objects, fields, Apex classes, flows, Lightning components, permission sets, and connected apps or remote site settings. The installer does not check three things.
- Whether the app works with your data volume, record types, and sharing model.
- Whether the new components interact badly with your existing triggers, flows, validation rules, or duplicate rules.
- Whether the package changed anything outside its own namespace. Managed packages are limited here, but unmanaged packages put their components directly in your org with no boundary.
Verification therefore has four parts: confirm the package identity, inspect what arrived, test behavior with limited access, and watch for side effects in the rest of the org.
Step 1: Confirm the package identity and version
Start by confirming that what you installed is what you meant to install. List the installed packages in the sandbox.
sf package installed list --target-org my-sandboxThe output lists each package's name, namespace, and version number, and the package version ID (the 04t ID). Compare these against the listing you reviewed:
- The package name and namespace match the publisher's documentation.
- The version number matches the version you intended, not an older or beta one.
- The
04tID matches the one you used in the install command.
A mismatch usually means someone used an old install link. Treat it as a process problem, because the same link could be used later in production.
You can also check in the UI at Setup > Installed Packages. This page shows the publisher, version, status, and the number of licenses used and available. It also has a link to the package's components, which leads to the next step.
Step 2: Inspect what arrived
Open the component list for the package from Setup > Installed Packages. Compare it with what the app needed in the access review you did earlier. Look for these items.
| Component type | What to check | Why it matters |
|---|---|---|
| Custom objects and fields | Names, field-level security defaults, and whether any fields were added to standard objects | Fields on standard objects such as Account or Contact are visible to your own users and reports |
| Apex classes and triggers | Whether triggers were added to standard objects | Triggers run on every save of those records and can affect other automation |
| Flows and process automation | Which are active on install | Active record-triggered flows fire without any user action |
| Permission sets | Names and which object and field permissions they grant | These are the units you will assign to users |
| Remote site settings, named credentials, external credentials | Endpoint URLs | These are the external connections, which should match what the publisher documented |
| Connected apps | OAuth scopes requested | Broad scopes such as `full` or `refresh_token` need a reason |
| Custom settings and custom metadata | Default values | Defaults may enable features or integrations you did not choose |
Pay close attention to anything that does not appear in the publisher's documentation. An undocumented endpoint or trigger does not prove bad intent, but you should ask the publisher about it before production. Record the answer.
For permission sets, open each one and read the object permissions, field permissions, and system permissions. Look especially for Modify All Data, View All Data, Author Apex, and API Enabled. These are rarely needed by an end-user permission set.
Step 3: Test with a minimal-access user
Because you chose AdminsOnly at install time, only administrators can use the app right now. An admin test hides problems, since administrators usually have broad permissions. You need to test as someone with only the access an ordinary user would have.
Create or pick a test user in the sandbox, with a profile close to your real users, such as a standard sales user profile. Then assign one of the app's permission sets to that user.
sf org assign permset --name Example_App_User --target-org my-sandbox --on-behalf-of [email protected]Replace Example_App_User with the real permission set API name from the package. If the package has several permission sets, start with the least powerful one. Add others only when a test fails and you can explain why the extra access is needed.
Then log in as the test user, using Login as from the user record or a separate browser session, and walk through the app's main scenarios:
- Open the app from the App Launcher. If it does not appear, the permission set may lack the app visibility setting, or the app may need a license.
- Create, read, and edit the records the app manages.
- Run the integration or sync feature, if there is one, and watch for errors.
- Try an action the user should not be able to do, such as viewing a restricted record or opening an admin page. Confirm that it is blocked.
The fourth step is the one most often skipped. A permission set that works is not enough. You also want proof that it does not give more than intended.
Step 4: Check for side effects
Side effects are changes in behavior outside the app itself. They are the hardest problems to find because the app may look fine while something else breaks.
Automation conflicts
Package triggers and flows run alongside your own. Test the objects the app touches:
- Create and update records on any standard object the package added triggers or fields to. Check that your existing flows, validation rules, and assignment rules still behave as before.
- Watch for validation rule failures. A package that writes to a field your validation rule requires will fail on save.
- Check Setup > Apex Jobs and Setup > Scheduled Jobs for scheduled or batch jobs the package created. Note their frequency.
Governor limits and performance
Package code runs under Salesforce governor limits, and in a managed package its limits for most per-transaction counts are separate from yours, but some limits are shared. Overall API requests and storage are counted against your org. After exercising the app, open Setup > System Overview and compare these figures with the values you recorded before the install:
- API requests in the last 24 hours
- Data storage and file storage used
- Number of custom objects, which counts against the limit for your edition
If you ran a realistic data volume through the app, a large jump in any figure is worth raising with the publisher.
Data and visibility changes
- Run the org's Health Check under Setup > Health Check and compare the score with the pre-install score.
- Open the Setup Audit Trail and filter for the install time. It shows the configuration changes made during installation, including permission and setting changes.
- Check sharing settings, page layouts, and record types. Unmanaged packages and some installs can add fields to layouts. Make sure they did not expose data to the wrong profiles.
Debug logs
For anything that fails, use a debug log on the test user. Open Setup > Debug Logs, add a trace flag for the user, repeat the failing action, and read the log. Look for the namespace of the package in the log lines to tell whether the failure came from package code or your own. This is the fastest way to decide whom to ask for help.
Record a baseline before and after
The comparisons above only work if you captured the "before" state. Take these snapshots before the next install.
- The Health Check score.
- Storage and API request figures from System Overview.
- A list of active flows, triggers, and scheduled jobs. You can retrieve metadata with the CLI.
- The permission set list.
sf org list metadata --metadata-type PermissionSet --target-org my-sandboxRun the same command after the install and compare the output. New names in the second list are the package's permission sets, plus anything unexpected.
Common errors and how to read them
| Symptom | Likely cause | What to do |
|---|---|---|
| App missing from the App Launcher | No permission set assigned, or the app tab or app setting is not visible | Check the permission set's assigned apps and tab settings |
| "Insufficient privileges" on a package object | Missing object permission or field-level security | Compare the permission set with the object's permissions |
| License error on assignment | No free license, or the user's license type does not fit | Check licenses in Installed Packages |
| Errors saving a standard object record | Package trigger or field conflicts with your validation rule or flow | Use a debug log to find which component failed |
| Callout errors | Remote site setting or named credential inactive or wrong | Confirm the endpoint and authentication in Setup |
| Works for admins but not for test user | Admin has permissions the permission set lacks | Add only the missing permission, and document why |
Decide: pass, fix, or reject
At the end of verification, write down the outcome for each of the four stages. A good record states the version tested, the user and permission set used, the scenarios run, what failed, and what the publisher answered. Then choose one of three results:
- Pass: all scenarios work, no undocumented components, no side effects. Plan the production install using the same version ID and install option.
- Fix: the app works after configuration changes. Document each change, because you must repeat it in production.
- Reject: undocumented access, unexplained behavior, or an unresolved conflict. Uninstall in the sandbox, which also rehearses the removal covered in a later chapter.
Exercise
You installed a package in a sandbox with AdminsOnly. An admin tests it and everything works. Why is this not enough to call the install verified, and what two further checks would you do?
Show answer
Administrators usually hold broad permissions, so an admin test cannot show whether ordinary users have the access they need or whether the app grants too much. Assign the app's least powerful permission set to a test user with a realistic profile and run the main scenarios as that user, including an action that should be blocked. Then check for side effects: test the standard objects the package touched against your existing flows and validation rules, and compare Health Check, storage, and API usage with the baseline you recorded before the install.
Exercise
Saving an Opportunity fails in the sandbox after the install, with an error that mentions a required field. How do you find out whether the package or your own automation is responsible?
Show answer
Add a trace flag for the test user in Setup > Debug Logs, repeat the save, and read the log. Lines that reference the package's namespace show that package code (a trigger, flow, or class) ran and failed. Lines with only your own components point to your validation rule or flow, which the package may be triggering by writing a value into a field it requires.