# Function toExecutePivotQueryParams

toExecutePivotQueryParams(widgetModel): ExecutePivotQueryParams

Translates a WidgetModel to the parameters for executing a query for the pivot widget.

# Parameters

Parameter Type
widgetModel WidgetModel

# Returns

ExecutePivotQueryParams

# Example

const widgetModel = await widgetService.getWidgetModel({
 dashboardOid: 'your-dashboard-oid',
 widgetOid: 'your-widget-oid'
});
const executePivotQueryParams = widgetModelTranslator.toExecutePivotQueryParams(widgetModel);
const queryResult = await queryService.executePivotQuery(executeQueryParams);

Note: this method is supported only for getting pivot query. Use toExecuteQueryParams instead for getting query parameters for non-pivot widgets.