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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
lea_ternat
Contributor II
Contributor II

Automate table export to data format - REST API and Powershell

Hello,
I would like to automate the export of a table to a qlik view via powershell script, qlik sense enterprise windows.
I'd like to use the Qlik API, but I can't get my user to connect.
I'm writing to you in response to the following ticket: https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Call-Session-API-with-Postman-Pow...
Can you advise me on how to set up the virtual proxy? Or I've created a connection with API REST
How do I then make the call via the powershell script?
Thank you in advance for your help

Labels (6)
3 Replies
Øystein_Kolsrud
Employee
Employee

Do you want to export from Qlikview or Qlik Sense? It's a little unclear from your request. I don't know about Qlikview, but if Qlik Sense is your product then you need to go through the engine API to export data to Excel. You can use the Qlik Sense .NET SDK for interacting with the engine from PowerShell. It's available from NuGet here:

https://www.nuget.org/packages/QlikSense.NetSDK/

An example of how to use that SDK to export data from an object to Excel using C# can be found here:

https://github.com/AptkQlik/PublicExamples/blob/master/ExportDataToExcel/Program.cs

 

lea_ternat
Contributor II
Contributor II
Author

I use Qlik Sense.
I want to use a script to automate the process of selecting a table and exporting it in data format.


My powershell is not compatible with .NET dll


I wanted to use requests to the REST API, before that I have to use POST requests to the API ticket but I can't write the script
I hope to be clearer to express my difficulty.

Øystein_Kolsrud
Employee
Employee

You can't use the REST APIs for this. Extraction of data is done through the Engine API in Qlik Sense, and this API is based on JSON-RPC through websockets. This is the endpoint for doing that type of export:

https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/EngineJSONAPI/Content/service-generic...

It's certainly possible to use the .NET SDK from PowerShell. I'm not the best person to guide you there though, but here's an example of a thread on the topic:

https://community.qlik.com/t5/Integration-Extension-APIs/Qlik-Sense-NET-SDK-using-the-Qlik-Engine-IN...