newDefForItems()
Home > @gooddata/sdk-model > newDefForItems
newDefForItems() function
Prepares a new execution definition for a list of attributes and measures, filtered using the provided filters.
Signature:
export declare function newDefForItems(workspace: string, items: IAttributeOrMeasure[], filters?: INullableFilter[]): IExecutionDefinition;
Parameters
Parameter |
Type |
Description |
---|---|---|
workspace |
string |
workspace to execute against, must not be empty |
items |
list of attributes and measures, must not be empty | |
filters |
(Optional) list of filters, may not be provided |
Returns:
Remarks
This function MUST be used to implement IExecutionFactory.forItems();