Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

New Contributor II

How to load qlik sense data into C# application

Hello All,

I'm new to Qlik sense, I'm trying to load the data from Qlik Sense desktop. I could able to connect local Qlik Sense desktop application. I was referring to this document to load script but got stuck  

Loading data into Qlik Sense ‒ Qlik Sense Developers

         IApp app ;


        public void createCustomScript()


            string localizationScript = app.GetEmptyScript();

            string newScript = localizationScript + "LOAD RowNo() AS value, 1 AS myDimension AUTOGENERATE 300;";


        public ActionResult Index()



            Uri uri = new Uri("http://localhost:4848");

            ILocation location = Qlik.Engine.Location.FromUri(uri);


            var newAppIdentifier = location.HasAppWithName("Consumer Sales");


            using (IHub hub = location.Hub())



                Debug.Write($"the local product version {hub.ProductVersion()}");



            Debug.Write($"the local product version {newAppIdentifier}");

            return View();


Any help would be appreciated.


1 Reply

Re: How to load qlik sense data into C# application

Hi! You'll need to take the script you create in your method "CreateCustomScript" and use it as argument to the set the script of the app using IApp.SetScript Method. After you have done so, you need to trigger the script evaluation which will do the actual data load using IApp.DoReload Method.