Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I need to create a .Net Windows Forms which is used to launch a Qliksense Task.
I'm using SDKs, but I don't find a way to start a task in the documentation.
I am not using the API.
Can anyone advise me.
I need some sample code.
Thanks in advance
We got it
Thank you
RestClient restClient = new RestClient(url);
restClient.AsNtlmUserViaProxy();
restClient.Get("/qrs/about");
restClient.Post("/qrs/task/start ?name=BSC_00-Start") ;
If you want to run a predefined task, then you have to connect to the repository. It's that service that handles scheduling and other activities external to the apps. With the .NET SDK you can connect to the engine and ask for an explicit reload, but the result of that reload will not be reflected in any task status.
I typically use this package for doing REST API calls to the repository from C#:
https://www.nuget.org/packages/QlikSenseRestClient/
There are some basic usage examples available here:
https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples
We got it
Thank you
RestClient restClient = new RestClient(url);
restClient.AsNtlmUserViaProxy();
restClient.Get("/qrs/about");
restClient.Post("/qrs/task/start ?name=BSC_00-Start") ;