Home > How to: Default variables, custom mapping and Salesforce

Categories:


(Last Updated On: November 15, 2017)

If you are using the Design Studio (legacy users click here) with the SalesForce integration and are looking to map over data, please follow the steps listed below to ensure you get the correct info mapped to your Salesforce account.

When editing a theme in the Design Studio, you will notice some standard Design Studio fields. These fields do not have an area to add a javascript name and that is because they have default javascript backend names in our system already.

Email – Doesn’t need to be mapped because we already send this info by default

Your Question -Doesn’t need to be mapped because we already send this info by default

Name – Variable name “name  NEEDS TO BE MAPPED (this is the first name only)

Phone Variable name “phone  NEEDS TO BE MAPPED

Company -Variable name “company NEEDS TO BE MAPPED

To map these over to your SalesForce follow these steps.

  1. Add all or some of these fields to your pre-chat and or offline forms in the Design Studio. Hit save.
  2. Go to Settings > Options and scroll down to “Collect Additional Information” and check the box to allow JavaScript Variables and add “name, phone, company” to the list. Hit save. 
  3. Next, go to Settings > Integrations and scroll down to the custom mapping section. Map these 3 variables to the corresponding fields in SF. Hit save. 

*If you need first and last name you will not be able to use the standard name field and will need to use a “single line text input” Design Studio field. And then add those in Options and map them over.

Legacy users

If you are using the standard legacy code with the Style design tool, then now would be a great time consider upgrading to the Design Studio. With the legacy style code pre-chat form, you only have “Email” and “Your question” options. We map these over by default which is great, but you don’t have the flexibility to add any additional fields.

To enable the Design Studio, click on Settings > Style (you will only see this option if you are not currently on Design Studio and not using a custom form). 

Here are some helpful docs and a video so you can learn more about it https://help.snapengage.com/intro-to-design-studio/ and https://help.snapengage.com/intro-to-the-design-studio-video/

Did you find this article helpful?

Not HelpfulNeeds WorkSo-soHelpfulVery Helpful (No Ratings Yet)
Loading ... Loading ...

Published November 15, 2017