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 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'