Willie Doyle
09/19/2023, 12:56 AMThomas Karbe
09/19/2023, 8:35 AMThomas Karbe
09/19/2023, 8:36 AMMichal Hauzírek
09/19/2023, 10:57 AMetl.lastRecordDeduplication
to false
. In that case you receive an error in case there is a duplicity on key during the load.
In case of incremental load it only fails if within the data being loaded is a duplicity. You can still overwrite existing (already loaded) data with a new value with the same key.Michal Hauzírek
09/19/2023, 11:16 AMexportResult
API with path from the previous call of executeAfm
API but I am not sure if the first step - executeAfm API is documented anywhere and especially if it is documented how to use it to call a specific existing insight 😕.
On the other hand, if you do not want to build the queries dynamically and only want to repeatedly call the same query, you might try building this insight in the UI and then capturing the proper executeAfm API call in the browser console. It will be something in line with:
POST /gdc/app/projects/{PROJECT_ID}/executeAfm
with payload like (depending on how exactly your :
{
"execution": {
"afm": {
"attributes": [
{
"displayForm": {
"uri": "/gdc/md/k9camwhstjud8i7di51o8llcl1by2byz/obj/979"
},
"localIdentifier": "b76d894ec377447d94f96a63591a88dc"
}
],
"filters": [
{
"relativeDateFilter": {
"dataSet": {
"uri": "/gdc/md/k9camwhstjud8i7di51o8llcl1by2byz/obj/684"
},
"granularity": "GDC.time.month",
"from": 0,
"to": 0
}
}
]
},
"resultSpec": {
"sorts": [
{
"attributeSortItem": {
"attributeIdentifier": "b76d894ec377447d94f96a63591a88dc",
"direction": "asc"
}
}
],
"dimensions": [
{
"itemIdentifiers": [
"b76d894ec377447d94f96a63591a88dc"
]
},
{
"itemIdentifiers": []
}
]
}
}
}
Michal Hauzírek
09/19/2023, 11:18 AMWillie Doyle
09/19/2023, 11:56 PM