Newer Version Available
Lightning Toggle Metrics
Syntax
- URI
- /services/data/vXX.X/sobjects/LightningToggleMetrics
- Available since release
- 44.0
- Formats
- JSON, XML
- HTTP methods
- GET
- Authentication
- Authorization: Bearer token
- Request body
- SOQL query.
- Request parameters
-
Parameter Description UserId The user ID. RecordCount The count of records returned. MetricsDate The date the switch was recorded. Action Did the user switch to Salesforce Classic or Lightning Experience.
Example
This query returns the total number of switches to Salesforce Classic:
1SELECT sum(RecordCount) Total FROM LightningToggleMetrics WHERE MetricsDate = LAST_MONTH AND Action = 'switchToAloha'Usage
Use this object with the following APIs:
- Platform
- Metadata API
- Tooling API