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.
Lens State Input
The state for an Analytics lens.
Properties
| Property Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| options | LensVisualizationOptionsInput | The configuration options for different lens visualizations. | Optional | 36.0 |
| query | QueryInput | The SAQL query to be used to create this lens. | If using any visualization type other than comparison table, you are required to specify this property. | 36.0 |
QueryInput
| Property Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| aggregateFilters | Object | The compact form aggregate filters for the query. | Optional | 48.0 |
| columnGroups | Object | The column groups for the query. | Optional | 56.0 |
| columnTotals | Object | The column totals for the query. | Optional | 56.0 |
| limit | Object | The query limit. | Optional | 48.0 |
| orders | Object | The query orders. | Optional | 48.0 |
| query | String | The SAQL query. | Optional for PATCH, required for POST | 36.0 |
| rowTotals | Object | The row totals for the query. | Optional | 56.0 |
| sourceFilters | Map<String,CompactFormFilterInput> | The map of compact form source filters for the query. | Optional | 48.0 |
| sources | CompactFormSourceInput[] | The list of compact form sources for the query. | Optional | 48.0 |
| timezone | String | The timezone for the query request. | Optional | 43.0 |
| version | Double | Version to which this query language construct belongs. | Optional for PATCH, required for POST | 36.0 |
CompactFormFilterInput
| Property Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| booleanFilterLogic | String | The boolean filter logic. | Optional | 49.0 |
| filters | Object | The compact form filters. | Required | 48.0 |
CompactFormSourceInput
H
| Property Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| cogroupType | ConnectWaveCompactFormCogroupTypeEnum | The compact form source
cogroup type. Valid values are:
|
Required | 48.0 |
| columns | CompactFormColumnInput[] | The list of compact form source columns. | Required | 48.0 |
| groups | Object | The compact form source groups. | Required | 48.0 |
| filters | Object | The compact form source column filters. | Required | 48.0 |
| name | String | The compact form source name. | Required | 52.0 |
CompactFormColumnInput
| Property Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| field | Object | The compact form column field | Required | 48.0 |
| formula | String | The formula for the compact form column. | Required | 48.0 |
| name | String | The name of the compact form column. | Required | 48.0 |
LensVisualizationOptionsInput
| Property Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| columnTotals | Boolean | Indicates whether to display column totals in the table (true) or not (false). | Optional | 55.0 |
| fit | Boolean | Indicates whether to scale the position and size of data shape so that it’s proportional to its percentage of its category (true) or not (false). | Optional | 36.0 |
| hideHeaderColumn | Boolean | Indicates whether to display header column (true) or not (false). | Optional | 36.0 |
| legend | Boolean | Indicates whether to show legend (true) or not (false). | Optional | 36.0 |
| legendHideHeader | Boolean | Indicates whether to hide the legend (true) or not (false). | Optional | 36.0 |
| legendWidth | Integer | The width of the legend. | Optional | 36.0 |
| maxColumnWidth | Integer | The maximum width of the header column. | Optional | 36.0 |
| minColumnWidth | Integer | The minimum width of the header column. | Optional | 36.0 |
| miniBars | Integer | The width of the miniBars, if present. | Optional | 36.0 |
| multiMetrics | Boolean | Indicates whether multiple measures are projected on the same chart, side by side (true) , or if every measure is in its own chart (false). | Optional | 36.0 |
| normalize | Boolean | Indicates whether to scale the position and size of data shape so that it’s proportional to its percentage of its category (true) or not (false). | Optional | 36.0 |
| rowTotals | Boolean | Indicates whether to display row totals in the table (true) or not (false). | Optional | 55.0 |
| splitAxis | Boolean | Indicates whether each measure is projected on one axis or if all measures share an axis (true) or not (false). | Optional | 36.0 |
| sqrt | Boolean | Indicates whether the axis is sqrt scale (true) or not (false). | Optional | 36.0 |
| subtotals | Boolean | Indicates whether to display subtotals in the table (true) or not (false). | Optional | 48.0 |
| totals | Boolean | Indicates whether to display totals in the table (true) or not (false). | Optional | 36.0 |
| trellis | Boolean | Indicates whether the last group is treated as a trellis dimension (true) or not (false). Every distinct value of the dimension is a chart. | Optional | 36.0 |