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 token``s

Request parameters

ParameterDescription
UserIdThe user ID.
RecordCountThe count of records returned.
MetricsDateThe date the switch was recorded.
ActionDid the user switch to Salesforce Classic or Lightning Experience.

Example 

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