Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Set Up the Customer Lifecycle Analytics App

Learning Objectives

After completing this unit, you’ll be able to:

  • Understand the data requirements for the Customer Lifecycle Analytics app.
  • Create and share the app.
  • Decide data import frequency for the app.
  • Understand how to configure scorecards.

Check Data Requirements

Before she can create apps using the Customer Lifecycle Analytics template, Maria must ensure that there are enough records in her org. She learns that the data requirements are minimal. With Ursa Major Solar already using Salesforce Survey to run all their surveys, their org already meets the data requirements.

To meet data requirements, each org must have at least one record of each of these objects.

  • Survey
  • SurveyQuestion
  • SurveyQuestionChoice
  • SurveyQuestionResponse
  • SurveyVersion
  • SurveyInvitation
  • SurveySubject
  • Account

Create the App

Maria is all set to create Ursa Major Solar’s first app using the Customer Lifecycle Analytics template.

  1. From the App Launcher, find and select Analytics Studio.
  2. Click Create, and select App.
  3. Search and select Customer Lifecycle Analytics.
  4. Click Continue.
    App Template menu with Customer Lifecycle Analytics template highlighted.
  5. Get an overview of what the app contains, and click Continue.
  6. Select Create a brand new app, and click Continue.
    On the next page, a check ensures that there is sufficient data in the org to an app using Customer Lifecycle Analytics.
  7. Click Looks good, next.
  8. Select the following options:
    • Would you like to add customer lifecycle maps to your app?: No
      Maria doesn’t add customer lifecycle maps because Ursa Major Solar currently doesn’t use Customer Lifecycle Maps. To add Customer Lifecycle Maps to your app, your org needs the Salesforce Feedback Management license.
    • Select objects associated with survey invitations.: None
      Maria doesn’t select any of the objects because Ursa Major Solar wants to only use invitations associated with Cases, Contacts, and Users. These datasets are added to the app by default.
    • Would you like to add the pre-configured Einstein Discovery story to your app?: Yes
      This adds Einstein Discovery to the app. Einstein Discovery provides intelligent suggestions on how to improve survey response rates. A participant’s probability of responding to a survey depends on the context of the survey. Einstein uses data from records associated with the survey invitation to predict suggestions.
  1. Click Looks good, next.
  2. Name your app: Survey Response Insights.
  3. Click Create.

Now Maria sits back and relaxes—it takes a few minutes to create the app. Once it’s created, she refreshes the page to view the shiny new app.

Share the App

Now that the Customer Lifecycle Analytics app is ready, Maria shares it with her teammates. She provides user access to Shinje.

  1. From the App Launcher, find and select Analytics Studio.
  2. Search for Survey Response Insights and select it.
  3. Click Share icon.
  4. On the Invite others section, add Shinje Tashi as Viewer.
  5. Click Save.

Keep Data Flowing In

Maria must also decide the frequency with which the org’s data is imported into the Customer Lifecycle App. Since Ursa Major Solar sends out invitations and receives responses every day, Maria decides to import data daily.

  1. From the App Launcher, find and select Analytics Studio.
  2. Click Setup icon and select Data Manager.
  3. Click Dataflows & Recipes.
  4. Search for Survey Response Insights Analytics for Customer Experience.
  5. Click Dropdown beside Survey Response Insights Analytics for Customer Experience.
  6. Select Schedule.
  7. Make the following selections.

    Field

    Selection

    Schedule Mode

    Time-Based

    Schedule by

    Hour

    Start at

    12:00 am

    Run every

    24 hours

    Days of the week

    Every day

  8. The schedule should look like this: Data import schedule settings.
  9. Click Save.

Add the Scorecard to Record Pages

Remember, Ursa Major Solar decided to use Customer Lifecycle Analytics because it would allow them to view customer satisfaction scores after a case is closed and the Net Promoter Score of each customer. They also wanted to review the satisfaction scores of its sales reps. Maria uses the Lightning App Builder to add the required scorecards to the Case record pages, Contact record pages, and the User record pages.

Add the Scorecard to Case Record Pages

Maria adds the scorecard on Case records. The scorecard displays the customer satisfaction score on the closure of a case to Case records.

  1. From the App Launcher, find and select Cases.
  2. Click on the Issues with Solar Panel Installation case.
  3. Click Setup icon and select Edit Page.
  4. Drag the CRM Analytics Dashboard component on to the page.
  5. On the right panel, select the Case CSAT dashboard.
  6. Switch to the Filter String.
  7. Enter the following filter: {'datasets':{'Cases':[{'fields':['Id'], 'filter':{'operator': 'matches', 'values':['$Id']}}], 'SurveyQuestionResponsewithDetails':[{'fields':['SurveyVersion.Survey.Name'],'filter':{'operator':'in','values':["Customer Satisfaction"]}},{'fields':['Question.Name'],'filter':{'operator':'in','values':["How would you rate our service"]}}]}}.
    The filter contains the following details: the API name of the dataset version that contains the object details, the API name of the dataset version that contains the response details, the name and version of the survey that was sent to the customer after the case is closed, and the name of the question that gathers the customer’s satisfaction score.
  8. Complete the following for each field:

Fields

Action

Show Sharing Icon

Deselect

Show Title

Deselect

Show Header

Deselect

Open Links in New Windows

Deselect

Open Dashboard

in Analytics Studio

Hide on Error

Select

It should look like this:

Settings for the Einstein Analytics Dashboard on Case records.

  1. Click Save.
  2. Click Activate.
  3. On the Org Default tab, click Assign as Org Default.
  4. Select Desktop and Phone, and click Next.
  5. Click Save.

Add Scorecard to Contact Record Pages

Next Maria adds the scorecard that displays the NPS of each customer to Contact records.

  1. From the App Launcher, find and select Contacts.
  2. Click the record of Linda Rosenberg.
  3. Click Setup icon and select Edit Page.
  4. Drag the CRM Analytics Dashboard component on to the page.
  5. On the right panel, select the Contact NPS dashboard.
  6. Switch to the Filter String.
  7. Enter the following filter: {"datasets":{"Contacts ":[{"fields":["Id"],"filter":{"operator":"in","values":["$Id"]}}], "SurveyQuestionResponsewithDetails":[{"fields":["SurveyVersion.Survey.Name"],"filter":{"operator":"in","values":["Employee Satisfaction"]}},{"fields":["Question.Name"],"filter":{"operator":"in","values":["How satisfied are you at your current role?"]}}]}}.
  8. Complete the following for each field:

    Fields

    Action

    Show Sharing Icon

    Deselect

    Show Title

    Deselect

    Show Header

    Deselect

    Open Links in New Windows

    Deselect

    Open Dashboard

    in Analytics Studio

    Hide on Error

    Select

  9. Click Save.
  10. Click Activate.
  11. On the Org Default tab, click Move to the App Default tab, and select Assign as Org Default.
  12. Select Desktop and Phone, and click Next.
  13. Click Save.

Add Scorecard to User Record Pages

Users in a Salesforce org are listed as people. Each user has their own People record. All of Ursa Major Solar’s employees are users in Ursa Major Solar’s Salesforce org. Maria needs to add the scorecard to the People records.

  1. From the App Launcher, find and select People.
  2. Click the record of Maria Jimenez.
  3. Click Setup and select Edit Page.
  4. Drag the CRM Analytics Dashboard component on to the page.
  5. On the right panel, select the User CSAT dashboard.
  6. Switch to the Filter String.
  7. Enter the following filter: {"datasets":{"Users ":[{"fields":["Id"],"filter":{"operator":"in","values":["$Id"]}}], "SurveyResponseWithDetails":[{"fields":["SurveyVersion.Survey.Name"],"filter":{"operator":"in","values":["Net  Promoter Score"]}},{"fields":["Question.Name"],"filter":{"operator":"in","values":["How likely are you to recommend our service to a friend or colleague?"]}}]}}.
  8. Complete the following for each field:

    Fields

    Action

    Show Sharing Icon

    Deselect

    Show Title

    Deselect

    Show Header

    Deselect

    Open Dashboard

    in Analytics Studio

    Open Links in New Windows

    Deselect

  9. Click Save.
  10. Click Activate.
  11. On the Org Default tab, click Move to the App Default tab, and select Assign as Org Default.
  12. Select Desktop and Phone, and click Next.
  13. Click Save.

Create and Set Up App: Check

That’s one more thing off Maria’s checklist. She created the Survey Response Insights app, including the scorecard for cases. Next, she walks Shinje through the app, the key dashboards that Ursa Major Solar will be using, and the Case scorecard.

Resources

Compartilhe seu feedback do Trailhead usando a Ajuda do Salesforce.

Queremos saber sobre sua experiência com o Trailhead. Agora você pode acessar o novo formulário de feedback, a qualquer momento, no site Ajuda do Salesforce.

Saiba mais Continue compartilhando feedback