Newer Version Available
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’