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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
muhammedraleen
Partner - Creator II
Partner - Creator II

Need to connect Qlik Engine API and getData()

Hi Team,

As of now, I have Qlik Sene Desktop. I have a Student Statement App, and i have created a straight table in the format they need. Now, using Qlik Engine API can I connect to this app and get that table data from using .net or JS. So, I can use the data in my custom app for other purposes.

Is this Possible? If yes, what's the best method? I see Qlik Engine API, Capability APIs.

Please anyone help me on this at your earliest convenience.


6 Replies
Øystein_Kolsrud
Employee
Employee

I guess your solution depends on how you want to use the extracted data. But here is a simple example of how to use the .NET SDK in C# to connect to an app in Qlik Sense Desktop, extract data from a table, and write it to standard output:

static void Main(string[] args)
{
   var objId = "<objectId>";
   var location = Location.FromUri("http://localhost:4848");
   location.AsDirectConnectionToPersonalEdition();

   var appId = location.AppWithNameOrDefault("MyApp");
   using (var app = location.App(appId))
   {
      var obj = app.GetGenericObject(objId);
      var pager = obj.GetHyperCubePager("/qHyperCubeDef");
      foreach (var cellRow in pager.GetAllData())
      {
         Console.WriteLine(string.Join("\t", cellRow.Select(c => c.Text)));
      }
   }
}

You can read more about the .NET SDK here:

https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPI/Content/Sense_NetSDKAP...

The .NET SDK is available for download from NuGet:

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

muhammedraleen
Partner - Creator II
Partner - Creator II
Author

Hi @Øystein_Kolsrud,

The above solution I tried, and it worked for me in Qlik Sense Desktop. I'm developing .NET app, so the desktop/console app supports the Qlik. Engine but for web-based .NET app we need to use web sockets; above solution I cannot use for web-based applications.

Please support me on working on web-based app and thanks for the above as well.

Øystein_Kolsrud
Employee
Employee

But can't you use the .NET SDK if you're building a .NET based web application?

muhammedraleen
Partner - Creator II
Partner - Creator II
Author

Hi @Øystein_Kolsrud ,

I need a sample code to achieve the above in .NET web-based app?

muhammedraleen
Partner - Creator II
Partner - Creator II
Author

Hi Team,

I need to use my extracted in my front-end tables, filters created. Can I use .NET to get data from my object or do i need to use Qlik Engine JSON API also to achieve it ?

Øystein_Kolsrud
Employee
Employee

I'm not a web developer, so I'm not really the best person to guide you in what is the best way forward. But the .NET SDK is primarily a .NET wrapper for the Qlik Engine JSON API. If you want to extract data from an app, then there is no other way than to use web sockets. And that library provides a way to do so in .NET.