Install the nps.today package
This guide installs nps.today for Salesforce and connects it to your nps.today account. It is written for Salesforce admins with basic configuration experience, and takes about 30 minutes.
When you are done, Salesforce is connected to nps.today and syncs survey responses every hour. Sending surveys and showing them to your users are set up afterwards, see Next steps.
New to the integration? Start with Get started for the full setup order.
Before you start
From nps.today, ask the person who runs your surveys for:
- an API key for Salesforce, see How to create an API key
- the campaign ID of the campaign the surveys are sent from, see Find your campaign ID
In Salesforce, you need:
- a user with the System Administrator profile
- Lightning Experience
- a deployed My Domain (Setup → My Domain). Without it, the nps.today components don't show up in Lightning App Builder.
-
Lightning Web Security switched on (Setup → Session Settings). Without it, the nps.today charts don't render, and other parts of the integration may fail.

-
to know which packages your org needs: see Packages & versions. Every org needs the Standard integration (nps.today Base). Orgs with B2C Person Accounts or Salesforce Messaging install one more package on top.
Try it in a sandbox first
Install in a sandbox, test with your own email address, and then install in production.
Step 1: Install the package
Install the Standard integration first, then any extra package your org needs. The package IDs (starting with 04t) are listed in Packages & versions.
- Log in to the Salesforce org you want to install in.
-
Paste the install link in the address bar, with your org's domain and the package ID filled in:
https://{org_domain}/packagingSetupUI/ipLanding.app?apvId={package_id}For example:
https://acme.my.salesforce.com/packagingSetupUI/ipLanding.app?apvId=04tRM000000EtkbYAC -
Choose Install for Admins Only and click Install. You give your users access with permission sets in step 2.
-
Wait for the confirmation. Large orgs can get an email when the installation is done instead.

sf package install --package 04tRM000000EtkbYAC --target-org <org alias> --security-type AdminsOnly --wait 20
Replace the package ID with the one from Packages & versions. With the older sfdx CLI, the command is sfdx force:package:install -u <org alias> -p <package id> --securitytype AdminsOnly -w 20.
Check the result in Setup → Installed Packages: the nps.today package is listed with the version you installed.
Step 2: Assign permission sets
The package comes with four permission sets. Assign them to give users access to nps.today in Salesforce. Assign nps.today admin to yourself first, because you need it for the next steps.
| Permission set | Lets the user | Give it to |
|---|---|---|
nps.today viewer |
See nps.today data, e.g. charts and NPS Responses | Everyone who works with customers |
nps.today requester |
Send a survey to one contact, e.g. with the contact button | Users who send surveys by hand |
nps.today mass requester |
Send surveys to many contacts from a list view, see List view button | Users who send surveys to lists |
nps.today admin |
Set up and run the integration | Salesforce admins |
-
Go to Setup → Users → Permission Sets.
-
Click a permission set, then Manage Assignments → Add Assignment.
- Select the users and click Assign.
If your org restricts access to custom settings
Some orgs switch on Restrict access to custom settings (Setup → Schema Settings). Then users who aren't admins can't send surveys until they get one extra permission.
How to tell, and how to fix it
Sending a survey reads an internal setting of the package (NpsTodaySecureSettings__c). It is a Protected custom setting: it isn't in Object Manager and can't be granted through object permissions, which is expected.
By default, every logged-in user can read custom settings. With Restrict access to custom settings switched on, they need explicit access, and because this setting is Protected, it doesn't show up in the object list of a permission set.
The fix: give the affected users the system permission Customize Application through a permission set. You keep the org-wide restriction, and you don't need broader permissions such as View All Data or Modify All Data.
Know what you grant
Customize Application is a setup permission: it also lets the user change setup, e.g. custom fields and page layouts. Give the permission set only to the users who send surveys, and review it in your org's access reviews.
- Go to Setup → Permission Sets → New.
- Label: a clear name, e.g.
NPS Survey Access. - License:
--None--. - Click Save.
- On the new permission set, open System Permissions → Edit.
- Switch on Customize Application.
-
Click Save.
Salesforce lists permissions that are switched on with it: Manage Translation, View Setup and Configuration, Manage Custom Permissions and View Roles and Role Hierarchy. That is expected. Click Save to confirm.
-
Assign the permission set to the affected users, as above.
- Ask the users to log out and in again.
If you switched Restrict access to custom settings off to work around this, you can switch it on again once the permission set is assigned.
Step 3: Connect to nps.today
Salesforce calls nps.today with the API key, which you save in a Named Credential.
- Go to Setup → Security → Named Credentials.
-
Click nps.today - Production (name
NpsTodayProd, URLhttps://api.nps.today). The package installs it. -
Click Edit.
-
Keep Identity Type
Named Principal, Authentication ProtocolPassword Authenticationand UsernameApiKeyas they are. -
Password: paste the API key from nps.today.
-
Under Callout Options, tick all three boxes: Generate Authorization Header, Allow Merge Fields in HTTP Header and Allow Merge Fields in HTTP Body.
-
Click Save.
Watch how it's done
Step 4: Configure the package
-
Open the App Launcher and find the nps.today Admin tab.
-
Fill in the settings:
Setting What to enter Sync Options The records the responses are linked to. Switch on Sync Contacts if you send surveys to contacts. For B2C Person Accounts, see Person Accounts. Endpoint Credentials Always Production.Default NPS Campaign Id The campaign ID that is preselected when a user sends a survey with the contact button. If you don't use the button, any number works, e.g. 1234.Public Id Only for Salesforce Messaging: the public ID of the campaign. Otherwise leave it empty. Sync From Date Optional. Responses from before this date are not synced. Leave it empty to sync all responses. -
Click Save.
An error when you click Save?
Check that your user has the System Administrator profile and the nps.today admin permission set.
Step 5: Run the first sync and schedule it
- On the nps.today Admin tab, click Full re-sync. It fetches all responses from nps.today as NPS Response records (
npstoday__Response__c). -
Click Refresh to follow the job in the Sync job executions table, until it has completed.
-
Click Re-schedule sync job, so new responses are synced every hour.
-
Check that the job is listed in the Sync schedule table.

The sync runs as you
Salesforce runs a scheduled job as the user who scheduled it. If that user is deactivated, the sync stops. Schedule it as a user that stays active, e.g. an integration user with nps.today admin, or click Re-schedule sync job again when the admin changes.
Step 6: Check the installation
- The sync job in Sync job executions has completed, and Last run record count matches the number of responses in nps.today.
- The Sync schedule table has an hourly job.
- The responses are in Salesforce. In the Developer Console, Query Editor,
SELECT COUNT() FROM npstoday__Response__creturns the same number. - No errors were logged:
SELECT Id, CreatedDate FROM npstoday__Error__c ORDER BY CreatedDate DESCreturns no new records.
Something wrong? See Troubleshooting.
Next steps
The integration is connected, but your users don't see it yet. Each of these can be set up on its own:
- Show feedback on contacts and accounts: Show feedback in Salesforce
- Let users send a survey to one contact: Contact button
- Send surveys automatically, e.g. when a case is closed: Choose how to send surveys
- Train agents with P-GAP: P-GAP
- Keep an eye on it: Troubleshooting and monitoring