Lightning Usage by App Type

Return the total number of Lightning Experience and Salesforce Mobile users.

Syntax

URI
/services/data/vXX.X/sobjects/LightningUsageByAppTypeMetrics
Available since release
44.0
Formats
JSON, XML
HTTP methods
GET
Authentication
Authorization: Bearer token
Request body
SOQL query.
Request parameters
Parameter Description
AppExperience

The app used:

  • Salesforce Mobile
  • Lightning Experience
MetricsDate The date the data was recorded.
UserID The user ID.

Example

This query returns the daily active users by profile for Mobile:

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

Usage

Use this object with the following APIs:

  • Platform
  • Metadata API
  • Tooling API