---
schema_version: "1"
id: 672768a701427beb665c80fd4070a6e146f81c61fe8be99d1be940682d3b8244
title: Methods for Analytics Dashboards Lightning Web Component
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/dashboard-component/guides/bi-dbcomp-lwc-methods.md
canonical_url: https://developer.salesforce.com/docs/analytics/dashboard-component/guide/bi-dbcomp-lwc-methods.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: ba89f8904379b9d0395b9028ac4fb338cf66b5041a84328ac2c5b7b11b8f54ca
products:
  - Analytics Dashboard Component
  - analytics
---
# Methods for Analytics Dashboards Lightning Web Component

To change the state of a CRM Analytics dashboard at runtime, use the Lightning web component CRM Analytics dashboard component methods.

- [`getState` Method](https://developer.salesforce.com/docs/analytics/dashboard-component/guide/bi-dbcomp-lwc-getstatemethod.md)
- [`setState` Method](https://developer.salesforce.com/docs/analytics/dashboard-component/guide/bi-dbcomp-lwc-setstatemethod.md)
