# Configuration guide: Salesforce Lightning experience and license optimization

To get started with this library pack, please ensure all related content is installed and configured appropriately. This page provides guidance on which content is included and how to configure it.

Please keep in mind this is just a guide and represents suggested configurations. You are free to customize and edit content as you see fit based on your specific environment.

## Pre-requisites <a href="#configurationguide-salesforcelightningexperienceandlicenseoptimization-pre-requisites" id="configurationguide-salesforcelightningexperienceandlicenseoptimization-pre-requisites"></a>

This library pack contains content from the following [expansion products](https://docs.nexthink.com/platform/overview/products):

* [Application Experience - Applications](https://docs.nexthink.com/platform/library-packs/applications). A license is required to install and access the application in this library pack.

## Content list and dependency <a href="#configurationguide-salesforcelightningexperienceandlicenseoptimization-contentlistanddependency" id="configurationguide-salesforcelightningexperienceandlicenseoptimization-contentlistanddependency"></a>

This library pack contains the following content and dependencies:

| Type                                                                                                        | Name                                      | Description                                                                                                                                                                                                                              | Dependencies                                                       |
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [Application](https://docs.nexthink.com/platform/user-guide/applications/getting-started-with-applications) | Salesforce Lightning                      | Monitor the adoption, speed, reliability, and sentiment of your Salesforce Lightning application, as well as troubleshoot any issues, directly from [Nexthink Applications](https://docs.nexthink.com/platform/user-guide/applications). | <ul><li>Required to populate specific dashboard widgets.</li></ul> |
| [Live dashboard](https://docs.nexthink.com/platform/user-guide/live-dashboards)                             | Salesforce Lightning license optimization | Monitor the the usage, under-usage, and non-usage of the main Salesforce Lightning licensed features: Analytics, CPQ, and Knowledge Edit.                                                                                                |                                                                    |

## Configuration guide <a href="#configurationguide-salesforcelightningexperienceandlicenseoptimization-configurationguide" id="configurationguide-salesforcelightningexperienceandlicenseoptimization-configurationguide"></a>

To effectively use this library pack, the content must be installed and configured appropriately. Below are some suggested steps to install and configure the content properly before use.

### **Step 1) Install library pack content** <a href="#configurationguide-salesforcelightningexperienceandlicenseoptimization-step1-installlibrarypackconte" id="configurationguide-salesforcelightningexperienceandlicenseoptimization-step1-installlibrarypackconte"></a>

Go to the [Nexthink Library](https://docs.nexthink.com/platform/library-packs) and install all required content from the *Salesforce Lightning experience and license optimization* library pack.

### **Step 2) Configure the application** <a href="#configurationguide-salesforcelightningexperienceandlicenseoptimization-step2-configuretheapplication" id="configurationguide-salesforcelightningexperienceandlicenseoptimization-step2-configuretheapplication"></a>

Navigate to the [manage application](https://docs.nexthink.com/platform/user-guide/applications/managing-applications) administration page to review and edit the “Salesforce Lightning” application. Ensure the URL pattern of your application is defined for your organization:

<div data-full-width="true"><figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-35cc54a986301dfcc32a7a18da06337aaa094153%2Fimage-20240117-092636.png?alt=media" alt="image-20240117-092636.png" width="760"><figcaption><p>Example URL pattern</p></figcaption></figure></div>

### **Key pages**

By default, this application monitors the following Key pages:

* Account
* Opportunity
* Lead
* Analytics
* Campaign
* Case
* Contact
* Event

<div data-full-width="true"><figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-f56591644d9e92a1e150f2b4769780b010d96e65%2Fimage-20230427-084247d.png?alt=media" alt="image-20230427-084247d.png"><figcaption></figcaption></figure></div>

### **Transactions**

There are several examples of transactions provided in this Library Pack by default. These examples can be used to create similar transactions if needed.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-42a20f232bfa933f5d2e97d192c8aeda35682d8b%2Fimage-20230427-084403.png?alt=media" alt="image-20230427-084403.png"><figcaption></figcaption></figure>

### **Step 2) Verify that the dashboard is returning licensed feature data** <a href="#configurationguide-salesforcelightningexperienceandlicenseoptimization-step2-verifythatthedashboardi" id="configurationguide-salesforcelightningexperienceandlicenseoptimization-step2-verifythatthedashboardi"></a>

Navigate to the Salesforce Lightning license optimization [live dashboard](https://docs.nexthink.com/platform/user-guide/live-dashboards) and verify that there are no errors in your KPIs. This live dashboard relies on usage data returned by the Salesforce Lightning application based on the following key pages defined in the pre-built application:

{% code title="Code" lineNumbers="true" fullWidth="false" %}

```
key page Analytics = *analytics*
key page Knowledge List = *Knowledge*view
key page Knowledge Edit = *Knowledge*
key page Configure Price Quote (CPQ)= *SBQQ*
```

{% endcode %}

{% hint style="info" %}
**Note**: In order to have this dashboard working, the key pages of Salesforce Lightning applications must be configured the same way as they are in the application contained in this pack. If you have customized your Salesforce Lightning instance, you may need to adjust the library configuration accordingly.
{% endhint %}

## Usage guide <a href="#configurationguide-salesforcelightningexperienceandlicenseoptimization-usageguide" id="configurationguide-salesforcelightningexperienceandlicenseoptimization-usageguide"></a>

Your content is now configured and ready to be used. For usage overview and recommendations, you can visit the usage guide:

[Usage guide: Salesforce Lightning experience and license optimization](https://docs.nexthink.com/platform/library-packs/applications/salesforce-lightning-experience-and-license-optimization/usage-guide-salesforce-lightning-experience-and-license-optimization)
