Skip to main content
Loading...
Skip to article
  • Qualtrics Platform
    Qualtrics Platform
  • Customer Journey Optimizer
    Customer Journey Optimizer
  • XM Discover
    XM Discover
  • Qualtrics Social Connect
    Qualtrics Social Connect

Triggering & Emailing Surveys in Salesforce or Updating Contacts in Qualtrics


Was this helpful?


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The feedback you submit here is used only to help improve this page.

That’s great! Thank you for your feedback!

Thank you for your feedback!


About Triggering & Emailing Surveys in Salesforce or Updating Contacts in Qualtrics

In the Workflows tab, you can set up tasks to trigger workflows within Qualtrics based on Salesforce Flows. The criteria for the Flow in Salesforce might be an event such as a case being closed or an opportunity being won. Once this Flow is met in Salesforce, Qualtrics can take action, such as updating contact information and sending a survey.

In addition, there are other methods of sending surveys as a part of your Salesforce extension. For these additional options, check out our page on Other Salesforce Distribution Methods. Qualtrics can also map survey responses back to Salesforce; for more information, view our Salesforce Response Mapping page.

Qtip: You can see distributions triggered from Salesforce in the Distributions tab of your survey.
the distributions tab of a survey that was linked to salesforce and distributed
Qtip: If you have also purchased access to CX Dashboards, you can report on your Salesforce Distributions with Distribution Reporting. If you are interested in CX Dashboards, contact your Account Executive or XM Success Manager.

Setting up a Salesforce Triggered Survey

The Salesforce outbound message event allows you to trigger and email survey invitations to respondents as soon as their corresponding object meets qualifying criteria in Salesforce

Qtip: The following steps require a Salesforce instance with access to Workflows and Approvals. If your instance doesn’t have this access, contact your Salesforce Administrator for help.
  1. Follow the instructions on the Salesforce outbound message event page to set up a Salesforce outbound message event in a new Qualtrics workflow.adding a salesforce outbound message event and then a task
    • Make sure you copy the event’s URL as you’ll need it to set up the integration in Salesforce.
  2. In your workflow, click the plus sign ( + ) and then Add a task.
  3. Select the XM Directory task.choosing the xm directory task
  4. Choose Distribute survey.selecting distribute survey
  5. Complete setting up the XM Directory task with your desired distribution method. You can send an email invitation, an SMS invitation, or a 2-way SMS survey by using piped text to bring in the Salesforce contact information. See the XM Directory task support page for step by step instructions for each distribution method.the piped text menu
    Qtip: Don’t want to send a survey? You can save Salesforce data to a mailing list instead. See Saving Record Changes in Salesforce as Contact Information for more information.
  6. Navigate to Salesforce and create a Flow on the object you selected in your Salesforce outbound message event. For example, if you selected “Lead” in your workflow event, you’ll choose “Lead” as the object for your Salesforce Flow. You can find more information about this in the Setting Up a Salesforce Flow section below.
  7. Create an Outbound Message and add it as an action in your Flow in Salesforce.
  8. After publishing your survey, test your setup by fulfilling the conditions of your Flow in Salesforce. This should carry the Salesforce fields to Qualtrics, save them as a contact in the specified mailing list, and then distribute the survey to the contact’s email.
    Qtip: See the Testing and Troubleshooting section for help troubleshooting your workflow.
Attention: When making edits to your Salesforce workflow, it’s important that the user who initially set up the workflow is the only user who edits the workflow. If a user who did not set up the workflow tries to edit it, the Salesforce integration will stop working. If you are not the Salesforce workflow owner but need to edit the workflow, then copy the workflow and make edits to the copy.

Saving Record Changes in Salesforce as Contact Information

Let’s say you have an opportunity in Salesforce that is won and you’d like to include this information in the opportunity’s contact entry in Qualtrics. You can use the Salesforce Workflow Rule event to push changes from Salesforce to Qualtrics. The updated contact information can be saved as embedded data or transactional data. If this is a new contact, the Salesforce Workflow Rule event can also be used to create new contacts within Qualtrics.

Qtip: Transactional data is only available to users with access to XM Directory.
  1. Follow the instructions on the Salesforce outbound message event page to set up a Salesforce outbound message event in a new Qualtrics workflow.
    • Make sure you copy the event’s URL as you’ll need it to set up the integration in Salesforce.
  2. In your workflow, click the plus sign ( + ) and then Add a task.
  3. Select the XM Directory task.choosing the xm directory task
  4. Choose Add to XM directory.choosing add to xm directory
  5. Complete setting up the XM Directory task to save contact information. Visit the linked page for more information.
  6. The First name, Last name, and Email address fields are required. All other fields are optional. Use the piped text menu, {a}, to fill in values for these fields based on your fields from Salesforce.mapping fields
  7. To add additional fields, click Add or remove embedded data fields.
  8. In the window that appears, add your fields. On the left, name the embedded data fields under Embedded Data Field. On the right, populate them with Salesforce field values under Field Value using the piped text menu, {a}.the embedded data window
  9. Choose how you’d like to save contact information:
    • Save or update embedded data: This option will save the contact information as embedded data. This is the option that should be selected for creating new contacts.
    • Add as a transaction to the contact info: This option will save the contact information as transactional data in an existing contact.
      Example: Let’s say I have a field called Location that is saved with my contact and does not change much overtime. It would be useful to save this field as contact embedded data. Therefore, I can see where this contact is located when viewing the contact. However, let’s say I want to create a new transaction each time a Salesforce case is closed for the contact. I can save a Store field as transaction data in order to see the store that this particular case is associated with in the contact’s touchpoint timeline.
  10. Save the task.
  11. Navigate to Salesforce and create a Flow on the object you selected in your Salesforce outbound message event. For example, if you selected “Lead” in your workflow event, you’ll choose “Lead” as the object for your Salesforce Flow. You can find more information about this in the Setting Up a Salesforce Flow section below.
  12. Create an Outbound Message and add it as an action in your Flow in Salesforce.
  13. After publishing your survey, test your setup by fulfilling the conditions of your Flow in Salesforce. This should carry the Salesforce fields to Qualtrics, save them as a contact in the specified mailing list.
    Qtip: See the Testing and Troubleshooting section for help troubleshooting your workflow.
Attention: When making edits to your Salesforce workflow, it’s important that the user who initially set up the workflow is the only user who edits the workflow. If a user who did not set up the workflow tries to edit it, the Salesforce integration will stop working. If you are not the Salesforce workflow owner but need to edit the workflow, then copy the workflow and make edits to the copy.

Saving Salesforce Fields as Embedded Data

Information from Salesforce is saved in your contact list, but is not automatically recorded in survey responses. But it is quick and easy to add them if you follow these simple steps:

  1. Make sure you’ve followed the steps to trigger and email a survey using Salesforce.
    Qtip: Make note of the spelling and capitalization you used when setting up your contact embedded data in your XM Directory task. Spelling and capitalization matter!
  2. Go to the Survey tab.
    Adding an element in the Survey Flow
  3. Select Survey flow.
  4. Click Add a New Element Here.
  5. Select Embedded Data.
  6. Type in the name of the contact embedded data field saved from Salesforce. The name of the embedded data field in the survey flow must be the same as in your contact (including capitalization, punctuation, spacing, and special characters). You do not need to set its value to anything, as its value will flow from the contact’s embedded data field.
    adding an embedded data field for the field saved from salesforce
  7. When finished, click Apply.
Qtip: This workflow can pull both contact embedded data and transactional data into a survey!

Qtip: Do you want to include Salesforce fields in your email or your survey? Follow the steps above to save these fields as embedded data. Then generate piped text for the embedded data you want to include.

Creating the Outbound Message

To set up your Flow properly, you’ll need to create an Outbound Message in Salesforce.

  1. In Qualtrics, click Copy URL next to your Salesforce Workflow Rule Event.clicking copy url next to the workflow rule event
  2. Click Setup in Salesforce.
    clicking the setup bar in salesforce

    Qtip: If you are not on the Home page, you can navigate there by clicking on the gear icon on the top right corner and choosing Setup.
    accessing the setup menu via the gear icon
  3. Select Outbound Messages – Process Automation > Workflow Actions.
    choosing outbound message in the setup search
  4. Click New Outbound Message.
    creating a new outbound message
  5. Select the Salesforce Object to use in the message. This should be the same object that triggers your Flow. For example, if you want the Flow to be triggered when a Case is closed, you would choose Case here.
    choosing the object
  6. Click Next.
  7. In the Name section, name your message. You may also provide a brief description if desired. adding the outbound URL and choosing fields
  8. Paste the Outbound Message URL from Qualtrics into the Endpoint URL field in Salesforce.
  9. Highlight any fields you would like to pass through the Outbound Message into Qualtrics and use the Add button to move them to the Selected Fields section.
  10. Click Save.

Setting up a Salesforce Flow

A Flow is a set of criteria created in Salesforce. When the criteria have been met, a workflow can be triggered. For example, the criteria might be that a case is marked as closed, and the workflow would be to have Qualtrics send a support feedback survey.

TO SET UP A SALESFORCE FLOW (Salesforce Lightning)

  1. Click Setup in Salesforce.
    the salesforce homepage with the search bar highlighted

    Qtip: If you are not on the Home page, you can navigate there by clicking on the gear icon on the top right corner and choosing Setup.
    accessing the setup menu via the gear icon
  2. Select Flows – Process Automation from the search results.choosing flow from the setup search
  3. Choose New Flow to create a new Flow in Salesforce.
    creating a new flow
  4. Choose how your Flow will be triggered. The most common is Record-Triggered Flow, which triggers the flow when a record is created, updated, or deleted. creating a record triggered flow
  5. Click Create.
  6. Select the Salesforce Object to which the Flow will apply in the Object dropdown. For example, if you want the Flow to be triggered when a Case is closed, you would choose Case here.choosing the object to use
  7. Choose what type of record changes should cause the Flow to trigger.
  8. Under Entry Conditions, set the criteria that must be met for the Flow to trigger. You can find more information on the options in this section on this Salesforce support page.creating entry conditions and saving the flow
    Example: If you want the Flow to be triggered when a Case is closed, you would set the Field to IsClosed and the Value to True.  You can add multiple conditions for your Flow here as well.
  9. Choose Actions and Related Records.
  10. Select Done.

Adding the Flow Action

This action tells Salesforce what to do once the Flow criteria is met. For example, the action might be for Qualtrics to send a survey invitation.

Setting Up A Flow Action (Salesforce Lightning)

  1. For your newly created Flow, click the plus sign ( ) below your Flow trigger.clicking the plus sign in a flow
  2. Select Action.
    choosing Action
  3. Choose Outbound Message.
    adding the outbound message as the action
  4. Use the dropdown to select the Outbound Message you created earlier.
  5. Give your action a label and description.
  6. Click Done.
  7. Make sure to Save your flow.
    saving the flow
  8. Give your Flow a name and description.
    giving the flow a name and saving
  9. Click Save.
  10. Activate the Flow.
    activating the flow

Testing and Troubleshooting

Once you have set up the Salesforce Flow, Salesforce Action, and XM Directory task, your survey is ready to go. Each time that the Flow criteria is met in Salesforce, the Salesforce data will be passed over into a new Qualtrics contact.

TROUBLESHOOTING IN QUALTRICS

  1. Workflows Reporting: If you set up your Workflow in the Workflows tab, you can check the Workflows Reporting tab. Here, you can filter your workflows by status as well as view the payload for each workflow to determine what caused it to fail. The Input Payload contains the fields being utilized in the workflow, and the Task Output contains the error message for the failed workflow.
  2. Survey Activation: Qualtrics can’t send a survey until that survey has been activated. Your survey is activated as soon as you publish and select a distribution method for your survey. Make sure your survey has been published and activated before troubleshooting. You can see your project’s status as well as activate it from the Projects page.
  3. Survey owner linked to Salesforce: When connecting with Salesforce, Qualtrics always checks the Salesforce credentials of the original survey owner. If you are setting up the Salesforce Extension and the survey has been shared with you, make sure the original survey owner also links their Qualtrics account to your Salesforce instance when building the workflow in Qualtrics.
  4. Storing participants in a contact list: If you’re successfully saving recipients to a contact list but the distributions aren’t going out, check the Distributions tab, as each distribution to an individual contact will be visible there. Here, you can download the Distribution History to track the distributions status.
  5. Email sent, but not received: If the distribution was sent, there may be an issue with email deliverability. Visit our page on Custom From Addresses to get some tips on improving email deliverability. If your emails are being marked as spam, you can also visit our page on how to Avoid Being Marked as Spam.
  6. Email not sent: If the distribution was not sent, has the survey been shared with you?
    • If the survey has been shared, check with the original survey owner to ensure that they have given you permission to distribute the survey. To see where the original survey owner can give you this permission, visit our Sharing a Project
    • If the survey has not been shared, the issue may be due to an error in Salesforce and the troubleshooting items in the Troubleshooting in Salesforce section should be reviewed.
    • Verify that you are using verified or accepted From addresses and Reply To addresses are valid, per our Custom From Addresses.
    • If your emails are failing or bouncing in the Distributions tab, refer to our Email Distribution Error Messages page for more information on these errors.

TROUBLESHOOTING IN SALESFORCE

  1. Email: Is Qualtrics looking at the correct field to find the email address? Qualtrics can only send a survey if it can find an email address as specified in the steps above.
  2. Flow activation: Just like surveys have to be active to collect responses, a Flow has to be active before it will send survey requests to Qualtrics. For information about how a Flow is activated, view the steps above.
  3. Workflow Flow fires: Set up another simple action in the same Salesforce Flow and see what happens when the Flow criteria met. Does this other workflow fire properly?
    • If the Workflow fires, check the Task Output in the Workflows Reporting tab and continue troubleshooting below.
    • If the Workflow doesn’t fire, there is an issue with your Flow criteria. Check these conditions to ensure they are correct.
  4. Outbound URL: Ensure that the appropriate Outbound URL has been successfully pasted into the Workflow, as shown in the steps above. If this link is missing or is incorrect, Qualtrics won’t know to send surveys when the Flow is met. Note that you should be using the survey owner’s outbound message URL. If an incorrect Outbound URL is connected to the Flow you are triggering, you will not see the workflow being triggered in Workflows Reporting despite meeting the Flow’s conditions.
  5. Pending Messages: Go to the “Monitor” section under “Setup” within Salesforce. There is a section to monitor “Outbound Messages.” If you see any pending messages there, then Salesforce is more than likely the issue. However, if you see the outbound message there for an extended period of time (e,g., more than five minutes), contact Qualtrics Support.
  6. Salesforce Permissions: Your Salesforce account needs permission to trigger Outbound Messages. This permission is available in your Salesforce account by navigating through Profile -> System Permissions -> Send Outbound Messages.

FAQs