GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

forInsight()

Home > @gooddata/sdk-backend-spi > IExecutionFactory > forInsight

IExecutionFactory.forInsight() method

Prepares a new execution for the provided insight.

Signature:

forInsight(insightDefinition: IInsightDefinition, filters?: INullableFilter[], options?: IPreparedExecutionOptions): IPreparedExecution;

Parameters

ParameterTypeDescription
insightDefinitionIInsightDefinitioninsight definition to create execution for, must have buckets which must have some attributes or measures in them
filtersINullableFilter[](Optional) optional, may not be provided, may contain null or undefined values which must be ignored
optionsIPreparedExecutionOptions(Optional) additional options for the prepared execution

Returns:

IPreparedExecution

Remarks

Buckets with attributes and measures WILL be used to obtain attributes and measures - the behavior WILL be same as in forBuckets() function. Filters, sort by and totals in the insight WILL be included in the prepared execution.

Additionally, an optional list of additional filters WILL be merged with the filters already defined in the insight.

The contract is that prepared executions created by this method MUST be executable and MUST come with pre-filled dimensions greated using the defaultDimensionsGenerator().

  • IExecutionFactory.forInsight() method
  • Parameters
  • Remarks
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use