Lightning Toggle Metrics

Returns details about users who switched between Salesforce Classic and Lightning Experience. 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/LightningToggleMetrics

Formats: JSON, XML

HTTP methods: GET

Authentication: Authorization: Bearer tokens

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

1SELECT sum(RecordCount) Total FROM LightningToggleMetrics WHERE MetricsDate = LAST_MONTH AND Action = 'switchToAloha'