Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
HenkTenk
Contributor II
Contributor II

Qlik Reporting API with Selections

Hi all,

I have been busy with requesting excel reports from Qlik Saas using the API's using this endpoint: https://yourtenant.yourlocation.qlikcloud.com/api/v1/reports

with this body:

{
  "type": "sense-data-1.0",
  "output": {
    "type": "xlsx",
    "outputId": "xlsx1",
    "excelOutput": {
          "outFormat": "xlsx"
          }
    },
    "SenseDataTemplate":
    {
        "appId": "b555f8b3-c8b4-678e-77aa-30281315a06f",
         "id": "rZbjLrt"
        }
}

 

This works and it gives me the right report, now I want to add selections during this API call but i am struggling with the right syntax for SenseDataTemplate.

When i make a similar request with sense-image, the selections are applied as described in the documentation. Can it be that the combination of SenseDataTemplate and selections does not work? 

Does anyone know how to add fieldselections in this API call?

1 Reply
DBIT
Contributor III
Contributor III

Pretty much looking to do the same. This is possible via the .Net SDK for Qliksense Enterprise. Surely they will have similar functionality in the SAAS API? Especially when you can export reports. It wouldn't make sense to cater for exporting reports but not to have functionality for making selections first.