Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
cocuzzan
Partner - Contributor III
Partner - Contributor III

Qlik sense - SDK .Net - C#- Running a task

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

Labels (1)
1 Solution

Accepted Solutions
cocuzzan
Partner - Contributor III
Partner - Contributor III
Author

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") ;

View solution in original post

2 Replies
Øystein_Kolsrud
Employee
Employee

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

cocuzzan
Partner - Contributor III
Partner - Contributor III
Author

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") ;