<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Qlik Sense Task ID by passing Task Name using API endpoint from C# .net code in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2454070#M20601</link>
    <description>&lt;P&gt;You might also want to have a look at this page describing filtering options:&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2024/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Filtering.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2024/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Filtering.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 07:45:33 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2024-05-20T07:45:33Z</dc:date>
    <item>
      <title>Get Qlik Sense Task ID by passing Task Name using API endpoint from C# .net code</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2453623#M20593</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I have a requirement where I would like to get task ID by passing the task name using QS API endpoint from C#.net code.&lt;/P&gt;
&lt;P&gt;Is this something that can be done?&lt;/P&gt;
&lt;P&gt;I tried below code which is giving me all the tasks but I want to pass a task name and get its specific task id.&lt;/P&gt;
&lt;P&gt;var restClient = new RestClient(qliksenseurl);&lt;/P&gt;
&lt;P&gt;var executeTask1 = $"/qrs/task/";&lt;/P&gt;
&lt;P&gt;var rsp1 = await restClient.GetAsync&amp;lt;JArray&amp;gt;(executeTask1);&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 11:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2453623#M20593</guid>
      <dc:creator>Manish</dc:creator>
      <dc:date>2024-05-17T11:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get Qlik Sense Task ID by passing Task Name using API endpoint from C# .net code</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2453684#M20595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77128"&gt;@Manish&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;We are here again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Use this code and you should be fine. I used as a filter a task name called 'Temp Test':&lt;/P&gt;
&lt;PRE&gt;try&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine("Starting Qlik Sense Connection");&lt;BR /&gt;var restClient = new RestClient(qlikSenseUrl);&lt;BR /&gt;restClient.AsNtlmUserViaProxy(new NetworkCredential(userName, securePassword, userDomain), certificateValidation: false);&lt;BR /&gt;Console.WriteLine("Connection stabilished");&lt;BR /&gt;&lt;BR /&gt;var getTaskURL = $"/qrs/task?filter=name eq 'Temp Test'";&lt;BR /&gt;foreach (var task in await restClient.GetAsync&amp;lt;JArray&amp;gt;(getTaskURL))&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine(task["id"]);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;catch (Exception ex)&lt;BR /&gt;{&lt;BR /&gt;Console.WriteLine(ex.Message);&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 13:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2453684#M20595</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-05-17T13:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get Qlik Sense Task ID by passing Task Name using API endpoint from C# .net code</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2453735#M20596</link>
      <description>&lt;P&gt;Hahah... Yes, I thought it is better to start a new discussion rather than using the old one.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22035"&gt;@marksouzacosta&lt;/a&gt;&amp;nbsp;It worked perfectly.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 15:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2453735#M20596</guid>
      <dc:creator>Manish</dc:creator>
      <dc:date>2024-05-17T15:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Qlik Sense Task ID by passing Task Name using API endpoint from C# .net code</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2454070#M20601</link>
      <description>&lt;P&gt;You might also want to have a look at this page describing filtering options:&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2024/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Filtering.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/May2024/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Filtering.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 07:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2454070#M20601</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2024-05-20T07:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Qlik Sense Task ID by passing Task Name using API endpoint from C# .net code</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2454438#M20604</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41242"&gt;@Øystein_Kolsrud&lt;/a&gt;&amp;nbsp;. It is helpful to know.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 07:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2454438#M20604</guid>
      <dc:creator>Manish</dc:creator>
      <dc:date>2024-05-21T07:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get Qlik Sense Task ID by passing Task Name using API endpoint from C# .net code</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2455421#M20641</link>
      <description>&lt;P&gt;As a little trick,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a PowerShell binary module QlikSenseCLI. in recent versions of Qlik Sense this will be in you install directory \Tools\QlikSenseCLI&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;you can add the QlikSenseCLI.dll to you C# project, and use that to communicate with the QRS Apis.&lt;/P&gt;
&lt;PRE&gt;bool TrustAllCertificates = true;&lt;BR /&gt;// you can authenticate in a variety of ways&lt;BR /&gt;//Current User Local system&lt;BR /&gt;client = QlikSenseCLI.QlikSense.Connect();&lt;BR /&gt;//QlikClient Certificate Auth&lt;BR /&gt;client = QlikSenseCLI.QlikSense.Connect(hostname, x509Cetificate, "Internal\\sa_api", TrustAllCertificates);&lt;BR /&gt;//Specified host Current User Auth&lt;BR /&gt;client = QlikSenseCLI.QlikSense.Connect(hostname,TrustAllCertificates);&lt;BR /&gt;//Specified host, specified credentials&lt;BR /&gt;client = QlikSenseCLI.QlikSense.Connect(hostname,networkCredentials,TrustAllCertificates);&lt;BR /&gt;&lt;BR /&gt;var getTaskURL = $"/qrs/task?filter=name eq 'Temp Test'";&lt;BR /&gt;QlikSenseCLI.Model.TaskCondensed[] tasks = client.InvokeGet(getTaskURL);&lt;BR /&gt;&lt;BR /&gt;var getTaskFullURL = $"/qrs/task/full?filter=name eq 'Temp Test'";&lt;BR /&gt;QlikSenseCLI.Model.Task[] tasksFull = client.InvokeGet(getTaskFullURL);&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 01:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Get-Qlik-Sense-Task-ID-by-passing-Task-Name-using-API-endpoint/m-p/2455421#M20641</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2024-05-23T01:01:21Z</dc:date>
    </item>
  </channel>
</rss>

