Show responses on other records
Responses are linked to the contact who answered. This guide shows them on the contact's account as well, with a lookup field and a flow. Use it as a pattern for other records, e.g. the case or opportunity a survey was about. Your org may need extra conditions in the flow.

Before you start
- The nps.today package is installed and syncs responses, see Install the package.
- You can create fields and flows in Salesforce.
Step 1: Add a lookup field to NPS Response
The lookup field holds the account of each response.
-
Go to Setup → Object Manager → NPS Response → Fields & Relationships, and click New.
-
Choose Lookup Relationship and click Next.
-
Related To:
Account. Click Next. -
Field Label:
Account. The Field Name becomesAccount, and the API nameAccount__c. Click Next. -
Click Next on the field-level security and page layout steps, and then Save.
The NPS Response object now has the field Account__c:
Step 2: Create the flow
The flow runs every time a response is synced, finds the contact who answered, and writes the contact's account to Account__c.
-
Go to Setup → Process Automation → Flows, click New Flow, choose Record-Triggered Flow and click Create.
-
Set up the Start element:
Object:
NPS Response
Trigger the Flow When:A record is created or updated
Condition Requirements:None
Optimize the Flow for:Fast Field Updates -
Add a Decision after Start, to check that the response has a respondent:
Label:
Has respondents?
OutcomeYes: Resource Triggering NPS Response → Respondent (shown as$Record > Respondent) Is NullFalse
Default outcome: rename it toNo -
On the
Nopath, add an Assignment that clears the account:Label:
clear_respondents
Variable:{!$Record.Account__c}Equals{!$GlobalConstant.EmptyString} -
On the
Yespath, add Get Records, to fetch the contact who answered:Label:
Get Records on Contacts
Object:Contact
Condition:IdEquals Triggering NPS Response → Respondent ($Record > Respondent)
How Many Records to Store:Only the first record
How to Store Record Data:Automatically store all fieldsThe flow now looks like this:

-
After Get Records, add a second Decision, to check that the contact has an account:
Label:
Account decision
OutcomeNo AccountID:{!Get_Records_on_Contacts.AccountId}Is NullTrue
Default outcome: rename it toHas Account -
Connect the No AccountID outcome to the
clear_respondentsassignment from step 4. -
On the Has Account outcome, add an Assignment that sets the account:
Label:
Set Response on Account
Variable:{!$Record.Account__c}Equals{!Get_Records_on_Contacts.AccountId} -
Check that the flow looks like this, then Save and Activate it.
Note
The flow runs when a response is created or updated, so responses that were synced before you activated it don't get an account until they are updated.
Step 3: Add the related list to the account page
- Go to Setup → Object Manager → Account → Page Layouts, and open the layout your users use.
-
Click Related Lists in the palette, and drag NPS Responses onto the layout.
-
Click the wrench icon on the related list and choose the columns, e.g. as below.
-
Click OK, then Save the Account layout.
Step 4: Check it
Open an account with a contact who has answered a survey. The response is in the NPS Responses related list.