Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Agentforce Field Service and Operations
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Set Up Surveys for Field Service Appointment Assistant

          Set Up Surveys for Field Service Appointment Assistant

          Send Salesforce Surveys to customers to get their feedback after an appointment. Salesforce Surveys requires a license that isn’t integrated with the Appointment Assistant license. You can also choose to integrate with GetFeedback.

          Required Editions

          Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience
          The Field Service core features, managed package, and mobile app are available in Enterprise, Unlimited, and Developer Editions.
          Available only if Digital Engagement is enabled.
          User Permissions Needed
          To set up surveys: System Administrator profile

          Before you set up the flow for Salesforce Surveys, you must:

          To set up the flow to send Salesforce Surveys, complete these steps.

          1. From Setup, in the Quick Find box, enter Process Automation, and then select Flows.
          2. Click New Flow.
          3. Select Record-Triggered Flow, and click Create.
          4. In the Configure Start window:
            1. In Object, enter Service Appointment.
            2. In Trigger the Flow When, select A record is updated.
            3. In Condition Requirements, select All Conditions Are Met (AND).
            4. For Field, enter Status.
            5. For Operator, select Equals.
            6. For Value, enter Completed.
            7. In When to Run the Flow for Updated Records, select Only when a record is updated to meet the condition requirements.
            8. Click Done.
          5. Create a resource for the Experience Site name.
            1. From the Toolbox, click New Resource.
            2. For Resource Type, select Variable.
            3. For API name, enter SiteName.
            4. For Data Type, select Text.
            5. In Default Value, enter your Experience Site name.
            6. Click Done.
          6. Create a resource for the survey ID.
            1. From the Toolbox, click New Resource.
            2. For Resource Type, select Variable.
            3. For API name, enter SurveyID.
            4. For Data Type, select Text.
            5. In Default Value, enter your survey record ID.
              Note
              Note To find your survey record ID, from the App Launcher, find and select Surveys, and click the name of your survey. Then, copy the ID from the URL.
            6. Click Done.
          7. Get the Experience Site ID.
            1. To add an element to the flow, click Add element.
            2. Under Data, select Get Records.
            3. Enter a name for the label. API Name is populated based on the label name.
            4. For Object, select Network.
            5. In Condition Requirements, select All Conditions Are Met (AND).
            6. For Field, enter Name.
            7. For Operator, select Equals.
            8. For Value, enter the resource that you created for the Experience Site name.
            9. For How to Store Record Data, select Choose fields and assign variables (advanced).
            10. For Where to Store Values, select In separate variables.
            11. For Field, select Id.
            12. For Variable, click in the field and select New Resource.
              • For Resource Type, select Variable.
              • For API name, enter SiteID.
              • For Data Type, select Text.
              • Click Done.
            13. Click Done.
          8. Create and save the Survey Invitation object.
            1. To add an element to the flow, click Add element.
            2. Under Data, select Create Records.
            3. Enter a name for the label. API Name is populated based on the label name.
            4. For How to Set the Record Fields, select Use separate resources, and literal values.
            5. For Object, select Survey Invitation.
            6. Set the field values.
              Field values for the survey invitation object
            7. Select Manually assign variables.
            8. For Variable, click in the field and select New Resource.
              1. For Resource Type, select Variable.
              2. For API name, enter SurveyInvitationID.
              3. For Data Type, select Text.
              4. Click Done.
            9. Click Done.
          9. Create and save the Survey Subject to link the survey to the service appointment record.
            1. To add an element to the flow, click Add element.
            2. Under Data, select Create Records.
            3. Enter a name for the label. API Name is populated based on the label name.
            4. For How to Set the Record Fields, select Use separate resources, and literal values.
            5. For Object, select Survey Object.
            6. Set the field values.
              Field values for the survey subject
            7. Click Done.
          10. Get the Survey Invitation, and save the survey link.
            1. To add an element to the flow, click Add element.
            2. Under Data, select Get Records.
            3. Enter a name for the label. API Name is populated based on the label name.
            4. For Object, select Survey Invitation.
            5. In Condition Requirements, select All Conditions Are Met (AND).
            6. For Field, enter Id.
            7. For Operator, select Equals.
            8. For Value, enter SurveyInvitationId.
            9. For How to Store Record Data, select Choose fields and assign variables (advanced).
            10. For Where to Store Values, select In separate variables.
            11. For Field, select InvitationLink.
            12. For Variable, select SurveyInvitationLink.
            13. Click Done.
          11. Update the Service Appointment custom field that you created to hold the survey invitation link.
            1. To add an element to the flow, click Add element.
            2. Under Data, select Update Records.
            3. Enter a name for the label. API Name is populated based on the label name.
            4. For Field, select the custom field that you created on the Service Appointment object.
            5. For Value, select SurveyInvitationLink.
              Field values for the Service Appointment record
            6. Click Done.
          12. Create a messaging template.
            1. From Setup, in the Quick Find box, enter Messaging, and then select Messaging Templates.
            2. To create the confirmation template, click New.
            3. In the Information area, enter the template name, developer name, and the message that the customer receives.
            4. Add the URL placeholder to your message. The URL enables customers to navigate to the Experience Site that you configured.
              1. For Related To, select Service Appointment.
              2. For Field, select a placeholder for the survey link.
              3. Click Insert. The URL placeholder is added to the message.
            5. In the Channels area, select one or more channels.
            6. Save your changes.
          13. Send an SMS with a link to the survey.
            1. Open the survey flow.
            2. To add an element to the flow, click Add element.
            3. Under Interaction, select Action.
            4. For Action, select Messaging Notification.
            5. Enter a name for the label. API Name is populated based on the label name.
            6. For Messaging Channel Unique Name, enter the messaging channel’s developer name.
            7. For Messaging Template Unique Name, enter the messaging template’s developer name.
            8. Include the Context Record ID, and then select Record.Id.
            9. Include the Recipient Phone Number, and then select Record.Contact.MobilePhone.
            10. Include the Recipient Record ID, and then select Record.Contact.Id.
            11. Click Done.
              Messaging input values
          14. Save and activate the flow.
           
          Loading
          Salesforce Help | Article