---
schema_version: "1"
id: 8a9e9e3f87d74646b3a7e7233ba45363a231cdef4f57b5aafa0524ebcdc38d5d
title: Lightning Toggle Metrics
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/resources/resources-lightning-togglemetrics.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/resources-lightning-togglemetrics.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d579fa7d9fd977cb112834410f1058ca24f16857d57ce2c969f5500c0b19ea76
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# 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**

|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

```nolang
SELECT sum(RecordCount) Total FROM LightningToggleMetrics WHERE MetricsDate = LAST_MONTH AND Action = 'switchToAloha'
```

