getState method to retrieve the current state of the rendered CRM Analytics dashboard.
|The configuration for the |
|The callback function to handle the |
|The current |
|The dashboard state. The state contains |
Add your implementation of the
getState call into the controller.js for your Aura component.
In this example, the
callback function handles success and error responses by setting component attributes with the response result. The
getState result is passed to the component’s
dashboardState attribute as a JSON string.
The callback result contains the payload with the
pageId and the
state attributes. Here’s a sample callback result.