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.
ListViewChartInstance
Retrieves metadata for all standard and custom charts for a given
entity in context of a given list view. This object is
available in API versions 34.0 and later.
Supported Calls
describeSObjects(), query()
Fields
| Field Name | Details |
|---|---|
| AggregateField |
|
| AggregateType |
|
| ChartType |
|
| DataQuery |
|
| DataQueryWithoutUserFilters |
|
| DeveloperName |
|
| ExternalId |
|
| GroupingField |
|
| IsDeletable |
|
| IsEditable |
|
| IsLastViewed |
|
| Label |
|
| ListViewChartId |
|
| ListViewContextId |
|
| SourceEntity |
|
Usage
- Example 1. Retrieve all custom and standard charts for Account entity for All Accounts list view
-
1SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId, GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId, ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’ and ListViewContextId=’00BR0000000U8Hr’ - Example 2. Retrieve metadata for a specific custom chart by ID for Account entity and All Accounts list view
-
1SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId, GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId, ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’ and ListViewContextID=’00BR0000000U8Hr’ and ListViewChartId=’0DdR00000004CBxKAM’ - Example 3. Retrieve metadata for a specific standard chart by its developer name for Account entity and All Accounts list view
-
1SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId, GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId, ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’ and ListViewContextID=’00BR0000000U8Hr’ and DeveloperName=’AccountsByIndustry’