salesforce survey merge fields

Merge Fields in Salesforce Surveys

Merge fields in salesforce surveys are an incredibly powerful tool! These are fantastic to add personalization to your surveys when gathering feedback.

This feedback is incredibly important and using merge fields can help get pertinent information about your participant from existing records.

One thing to note before we get too far into the tutorial, you do need to have the feedback management license.

You also need to have surveys enabled and the salesforce surveys advanced features permission assigned to the user who will be using this function.

In the post we will show you how to enable that license and then how to use and setup merge fields.

Enable Surveys Advanced Features

The first thing you’ll need to do is head to setup.

To get there click on the gear icon in the top right corner.

setup

When in setup search for surveys and select ‘Survey settings’.

survey settings

Then you will need to toggle on surveys in order to enable it.

enable surveys

Once you’ve enabled surveys search again in the quick find for permission sets.

permission sets

Once in the permission set create a new permission set.

This permission set will be used to assign advanced features to a user.

create new permission set

Once you’ve saved the initial label and description for the permission set, search for “Salesforce Surveys Advanced Features”.

Click edit and click the check box next to the “Salesforce Surveys Advanced Features” box.

enable surveys advanced features

Click save and confirm the changes to the permission set.

save permission set

Next you will need to add assignments to this permission set, or add your users to this setting.

Click Add Assignments.

add assignments

Then choose which users you would like to assign this permission set to.

add users

Click Assign and choose if this permission set will have an expiration or not.

Once assigned, go ahead and verify that you have these

Using Merge Fields in Salesforce Surveys

The first thing you’ll need to do is head over to surveys.

In the app launcher search and click on surveys.

surveys app launcher

Then either open an existing survey or create a new one.

Here I chose to create a new survey.

new survey

Then it brought up the new survey options to name the survey and choose the survey type.

Once complete, click continue.

survey basic information

Then in surveys click on advanced settings then merge field variables.

This will help us to set up the merge fields before using them.

advanced settings merge field

The first thing you’ll need to choose is the access level of the information.

This is from a context view, meaning you can enforce record permissions based on the user or system.

establish security

Then you’ll need to choose the object variables for the associate object and the participant object.

The associate object is an object that you will be using to gather information from for your scenario. In this scenario, I am creating a new opportunity so the associated object is opportunity.

The participant object is the object you will be gathering the survey taker’s information. So things like leads or contacts would work here. I chose contact.

Click save and head back to the survey.

set merge field objects

Next set up your first merge field.

Here is one merge field on the welcome page to grab the participant’s name.

I’ve greeted them and want to add their name. When ready click insert content.

welcome message surveys

Then choose the merge field from the participant record and click next.

insert merge field

Then find the field you want to insert.

For our scenario that would be contact.Name.

Click insert.

participant mege field

Then you should see the merge field in your welcome page.

enter in question

Next move on to the associated object.

With another question box we are grabbing the opportunity name.

insert merge field

Click insert content.

Then choose merge field from an associated record and click next.

insert associated object merge field

Next, choose the appropriate field name.

Here it is Opportunity.Name.

Then click insert.

choose merge field

You should see that merge field on the question now!

validate merge field

Now to test this click preview that is next to advanced settings.

preview merge field

Then choose some preview values.

This is just to grab test information to put in your merge fields. This will not carry over to the survey when it is live and sent.

Click preview.

merge field detail records

You can see that the participant merge field is working!

validate merge fields

Also, the associated object merge field is working!

validate merge fields

Once ready you can save, activate and send the survey to your participants!

Conclusion

A big congrats to you for making it through this blog post! We hope you found it useful!

Check out the Salesforce Emily youtube channel here.

You can read more about us here

And check out our courses here

More Reading

Post navigation