Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Lightning Usage by App Type
Returns the total number of Lightning Experience and
Salesforce Mobile users. This resource is available in REST API version 44.0 and
later.
Use this object with the following APIs:
- Platform
- Metadata API
- Tooling API
Syntax
URI: /services/data/vXX.X/sobjects/LightningUsageByAppTypeMetrics
Formats: JSON, XML
HTTP methods: GET
Request parameters
| Parameter | Description |
|---|---|
| AppExperience | The app used: Salesforce Mobile or Lightning Experience. |
| MetricsDate | The date the data was recorded. |
| UserID | The user ID. |
Example
1SELECT MetricsDate,user.profile.name,COUNT_DISTINCT(user.id) Total FROM LightningUsageByAppTypeMetrics WHERE MetricsDate = LAST_N_DAYS:30 AND AppExperience = 'Salesforce Mobile' GROUP BY MetricsDate,user.profile.name