Send surveys from a list view (button)
Add a Send NPS Requests button to the contact list views, so users can tick contacts in a list and send them a survey in one go. The button opens a page from the nps.today package, where the user enters the campaign ID, checks the recipients and confirms.
For other ways to send to many contacts, e.g. all members of a Salesforce campaign or a nightly list, see Choose how to send surveys.
Before you start
- The nps.today package is installed and connected, see Install the package.
- A campaign in nps.today and its campaign ID.
- You can edit the Contact object in Object Manager.
Step 1: Give users access
Assign the permission sets nps.today requester and nps.today mass requester to the users who send surveys, see Assign permission sets.
Step 2: Create the list button
- Go to Setup → Object Manager → Contact → Buttons, Links, and Actions.
-
Click New Button or Link and fill it in:
Label:
Send NPS Requests
Name:Send_NPS_Requests
Display Type:List Button, with Display Checkboxes (for Multi-Record Selection) ticked
Content Source:Visualforce Page
Content:npstoday__RequestRatingsFromContactsList -
Click Save.
Step 3: Add the button to the list view
- In Object Manager → Contact, click List View Button Layout.
- Click the arrow next to List View and choose Edit.
- Under Custom Buttons, move Send NPS Requests to Selected Buttons.
- Click Save.
Step 4: Test it
- Open the Contacts tab and a list view, e.g. My Contacts, with a test contact that has your own email address.
- Tick the test contact and click Send NPS Requests.
- Enter the campaign ID from nps.today. The campaign decides the survey's design, language and settings.
-
Check that the table at the bottom of the page shows the contact with its email address, and click Confirm.
-
Check that the survey arrives.
Your users send surveys the same way.
Troubleshooting
| Problem | What to check |
|---|---|
| The button isn't shown | Buttons aren't shown on the Recently Viewed list. Switch to another list view, e.g. All Contacts or My Contacts. |
| The recipient table is empty | Tick the contacts before clicking the button. |
| The surveys aren't sent | The campaign ID is right and the campaign is active in nps.today. The user has both permission sets. |
| A contact didn't get a survey | The contact has an email address or phone number. By default, nps.today sends one survey per contact per campaign: allow duplicates to send again. |
More is in Troubleshooting.