
GoodData Execute
CertifiedExecute a GoodData AFM analytics query
GoodData Execute
Execute a GoodData AFM analytics query
Posts an AFM (Analytical Framework Model) request to POST /api/v1/actions/workspaces/{workspaceId}/execution/afm/execute. Polls the execution result until completion and handles the result according to fetchType. Response bodies are limited to 10,000,000 characters (approximately 10 MB).
type: io.kestra.plugin.gooddata.executions.ExecuteExamples
Execute a GoodData AFM query and store the result
id: executions_execute
namespace: company.team
tasks:
- id: execute
type: io.kestra.plugin.gooddata.executions.Execute
url: "https://acme.cloud.gooddata.com"
apiToken: "{{ secret('GOODDATA_TOKEN') }}"
workspaceId: "my-workspace-id"
fetchType: STORE
afmRequest: |
{
"execution": {
"measures": [
{
"localIdentifier": "m1",
"definition": {
"measure": {
"item": { "identifier": { "id": "revenue", "type": "metric" } }
}
}
}
],
"attributes": [],
"filters": []
},
"resultSpec": {
"dimensions": [
{ "itemIdentifiers": ["measureGroup"] }
]
}
}
Properties
afmRequest *string
AFM request JSON
The complete AFM (Analytical Framework Model) request body as a raw JSON string.
apiToken *string
API token
Personal API token for authentication (sent as Authorization: Bearer
url *string
GoodData host URL
Base URL of the GoodData Cloud or GoodData.CN instance, e.g. https://acme.cloud.gooddata.com
workspaceId *string
Workspace ID
The identifier of the GoodData workspace to execute the AFM query against.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150fetchType string
STORESTOREFETCHFETCH_ONENONEFetch type
How to process execution results: STORE (store raw JSON in Kestra storage), FETCH (return all result rows), FETCH_ONE (return first row), or NONE. Defaults to STORE.
maxPollDuration string
PT1MMaximum polling duration
Maximum duration to poll for AFM execution completion before timing out. Defaults to PT60S.
pollInterval string
PT1SPoll interval
Interval between polling requests when waiting for AFM execution completion. Defaults to PT1S. Minimum is PT0.1S (100 ms).
requestTimeout string
PT1MHTTP request timeout
Timeout duration for individual HTTP requests to the GoodData API. Defaults to PT60S.
Outputs
executionResultId string
Execution result ID
The execution result identifier returned by GoodData, extracted from executionResponse.links.executionResult.
row object
Single row
First result row returned by the AFM query (when fetchType is FETCH_ONE).
rows array
Fetched rows
List of result rows returned by the AFM query (when fetchType is FETCH).
size integer
Result size
Number of data rows or elements returned in the result.
uri string
uriRaw response URI
Kestra internal file URI pointing to the full AFM execute result JSON (when fetchType is STORE).