<?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: QlikView API get triggers for external program task in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2036512#M18089</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/60539"&gt;@Benoit_C&lt;/a&gt;&amp;nbsp;Thanks!&lt;/P&gt;
&lt;P&gt;But I'm trying to use an API from an external program in Visual Studio.&lt;BR /&gt;I can't use this method - see my comment below the article &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/tac-p/2036508" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/tac-p/2036508&lt;/A&gt; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 12:43:00 GMT</pubDate>
    <dc:creator>BuTbka</dc:creator>
    <dc:date>2023-02-10T12:43:00Z</dc:date>
    <item>
      <title>QlikView API get triggers for external program task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2035745#M18079</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;Though API I&amp;nbsp;can get only triggers for&amp;nbsp;Document Task by &lt;A href="https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.Services.V12.Api7.IQMS7.GetDocumentTask.htm" target="_blank" rel="noopener"&gt;GetDocumentTask&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;How I can do the same for External Program Task?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 06:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2035745#M18079</guid>
      <dc:creator>BuTbka</dc:creator>
      <dc:date>2023-02-09T06:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API get triggers for external program task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2036468#M18088</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137154"&gt;@BuTbka&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Maybe you could try with GetExternalProgramTask:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.Services.V12.Api5.IQMS5.GetExternalProgramTask.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview-developer/May2022/Subsystems/QMSAPIref/Content/PIX.Services.V12.Api5.IQMS5.GetExternalProgramTask.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You could try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
 &lt;P&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;Set&lt;/SPAN&gt; objTask = objQlikViewServer.GetExternalProgramTask("&lt;SPAN style="color:hsl(120, 75%, 60%);"&gt;TaskName&lt;/SPAN&gt;")&lt;/P&gt;
 &lt;P&gt;&amp;nbsp;&lt;/P&gt;
 &lt;P&gt;&amp;nbsp;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;If &lt;/SPAN&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;Not&lt;/SPAN&gt; objTask&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt; Is&lt;/SPAN&gt; &lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;Nothing Then &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;For Each&lt;/SPAN&gt; objTrigger &lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;In&lt;/SPAN&gt; objTask.Triggers &amp;nbsp; &amp;nbsp;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color:hsl(0, 0%, 60%);"&gt;' Do something with the trigger &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;Next&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;Else&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color:hsl(0, 0%, 60%);"&gt;' Handle the case where the task was not found&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;End If&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In this proposal, objQlikViewServer is an instance of the QlikViewServer class, and TaskName is the name of the External Program Task that you want to retrieve information about. The method returns a reference to the Task object, which you can use to access its properties and methods.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Benoit&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 11:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2036468#M18088</guid>
      <dc:creator>Benoit_C</dc:creator>
      <dc:date>2023-02-10T11:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API get triggers for external program task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2036512#M18089</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/60539"&gt;@Benoit_C&lt;/a&gt;&amp;nbsp;Thanks!&lt;/P&gt;
&lt;P&gt;But I'm trying to use an API from an external program in Visual Studio.&lt;BR /&gt;I can't use this method - see my comment below the article &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/tac-p/2036508" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/QlikView-Connect-to-QMS-API-with-Visual-Studio/tac-p/2036508&lt;/A&gt; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 12:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2036512#M18089</guid>
      <dc:creator>BuTbka</dc:creator>
      <dc:date>2023-02-10T12:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API get triggers for external program task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2036553#M18090</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/137154" rel="nofollow" target="_blank"&gt;@BuTbka&lt;/A&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;You could try to build a C command within Visual Studio using QMS Api.&lt;BR /&gt;&lt;BR /&gt;Not sure it would work but you can try this below command, it could show how to retrieve a list of all External Program Tasks in a QlikView server:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE style="padding: 1em; color: hsl(0, 0%, 20.8%); background: hsla(0, 0%, 78%, 0.3); border: 1px solid hsl(0, 0%, 77%); border-radius: 2px; text-align: left; direction: ltr; tab-size: 4; white-space: pre-wrap; font-style: normal; min-width: 200px;"&gt;&lt;CODE style="background-color: hsla(0, 0%, 78%, 0.3); background: unset; padding: 0; border-radius: 0;"&gt;using System;
using System.Collections.Generic;
using QMSAPI;

namespace QlikView_API_Example
{
    class Program
    {
        static void Main(string[] args)
        {
            // Connect to the QlikView server
            QMSClient client = new QMSClient("https://qlikview-server:4799/QMS/Service");

            // Get a list of all External Program Tasks
            List&amp;lt;ExternalProgramTask&amp;gt; tasks = client.GetExternalProgramTasks();

            // Display the name and ID of each task
            foreach (ExternalProgramTask task in tasks)
            {
                Console.WriteLine("Task Name: " + task.Name);
                Console.WriteLine("Task ID: " + task.ID);
                Console.WriteLine();
            }

            // Disconnect from the QlikView server
            client.Dispose();
        }
    }
}&lt;/CODE&gt;&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This code would uses the QMS API to connect to the QlikView server and retrieve a list of all External Program Tasks. The tasks are represented by the 'ExternalProgramTask' class, which contains information such as the name and ID of the task.&lt;/P&gt; 
&lt;P&gt;Note: Maybe you will need to add a reference to the 'QMSAPI.dll' assembly in your Visual Studio project in order to use the QMS API. You can find this assembly in the '\Program Files\QlikView\Server\QMS' directory on your QlikView server.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2036553#M18090</guid>
      <dc:creator>Benoit_C</dc:creator>
      <dc:date>2023-02-10T13:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API get triggers for external program task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2037176#M18098</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/60539"&gt;@Benoit_C&lt;/a&gt;&amp;nbsp;thanks! &lt;BR /&gt;I will try.&lt;BR /&gt;I also tried in powershell&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$url = "http://qlikview:4799/QMS/Service" 

$service = New-WebServiceProxy -Uri $url -Namespace QlikViewServer -UseDefaultCredential
$serviceKey = $service.GetTimeLimitedServiceKey()

$qdsID = 'b01df110-bc40-48d2-8173-07da9677f273'
$taskID = 'c22fa0f8-ae97-42bc-ad1e-70076c908c4a'

$hdrs = @{}
$hdrs.Add("SOAPACTION","http://ws.qliktech.com/QMS/12/7/IQMS7/GetExternalProgramTask")
$hdrs.Add("Content-Type", "text/xml;charset=utf-8")
$hdrs.Add('X-Service-Key',$serviceKey)

$body = @{}
$body = '&amp;lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
&amp;lt;s:Body&amp;gt;
&amp;lt;GetExternalProgramTask xmlns="http://ws.qliktech.com/QMS/12/7/"&amp;gt;
&amp;lt;qdsID&amp;gt;' + $qdsID + '&amp;lt;/qdsID&amp;gt;
&amp;lt;taskID&amp;gt;' + $taskID + '&amp;lt;/taskID&amp;gt;
&amp;lt;/GetExternalProgramTask&amp;gt;
&amp;lt;/s:Body&amp;gt;
&amp;lt;/s:Envelope&amp;gt;'

Invoke-WebRequest -Uri $url -Method Post -Body $body -UseDefaultCredential -Headers $hdrs -ContentType "text/xml;charset=utf-8"
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and receive error:&lt;BR /&gt;&lt;EM&gt;The message with Action '&lt;A href="http://ws.qliktech.com/QMS/12/7/IQMS7/GetExternalProgramTask" target="_blank" rel="noopener"&gt;http://ws.qliktech.com/QMS/12/7/IQMS7/GetExternalProgramTask&lt;/A&gt;' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;with run task work well&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$hdrs = @{}
$hdrs.Add("SOAPACTION","http://ws.qliktech.com/QMS/12/7/IQMS7/RunTask")
$hdrs.Add("Content-Type", "text/xml;charset=utf-8")
$hdrs.Add('X-Service-Key',$serviceKey)

$body = '&amp;lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&amp;gt;
&amp;lt;s:Body&amp;gt;
&amp;lt;RunTask xmlns="http://ws.qliktech.com/QMS/12/7/"&amp;gt;
&amp;lt;taskID&amp;gt;' + $taskID + '&amp;lt;/taskID&amp;gt;
&amp;lt;/RunTask&amp;gt;
&amp;lt;/s:Body&amp;gt;
&amp;lt;/s:Envelope&amp;gt;'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 14:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2037176#M18098</guid>
      <dc:creator>BuTbka</dc:creator>
      <dc:date>2023-02-13T14:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API get triggers for external program task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2104724#M18989</link>
      <description>&lt;P&gt;Is this working for you? I'm in a similar situation where I need some of these APIs in visual studio.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 20:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2104724#M18989</guid>
      <dc:creator>pkeertipati</dc:creator>
      <dc:date>2023-08-10T20:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API get triggers for external program task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2104785#M18990</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/241628"&gt;@pkeertipati&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;No, it is a bug. If you can - open a support case.&lt;BR /&gt;There are a lot of missing(&lt;SPAN&gt;not exposed&lt;/SPAN&gt;) methods in QMSAPI.&lt;BR /&gt;&lt;A href="https://github.com/QlikProfessionalServices/QlikView-CLI/issues/4" target="_blank"&gt;https://github.com/QlikProfessionalServices/QlikView-CLI/issues/4&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/QlikProfessionalServices/QlikView-CLI/issues/5" target="_blank"&gt;https://github.com/QlikProfessionalServices/QlikView-CLI/issues/5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 06:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2104785#M18990</guid>
      <dc:creator>BuTbka</dc:creator>
      <dc:date>2023-08-11T06:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView API get triggers for external program task</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2110148#M19078</link>
      <description>&lt;P&gt;QlikView provides an API called the QlikView Management API that allows you to interact with QlikView Server and manage various aspects of the QlikView environment, including tasks and triggers. If you want to retrieve triggers for an external program task using the QlikView API, you would typically follow these steps:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/QlikProfessionalServices/QlikView-CLI/issues/4" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/QlikProfessionalServices/QlikView-CLI/issues/4&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://github.com/QlikProfessionalServices/QlikView-CLI/issues/5" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/QlikProfessionalServices/QlikView-CLI/issues/5&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dmdesign.com/kitchens/aberdeen-showroom/" target="_self" data-sheets-formula-bar-text-link="https://www.dmdesign.com/kitchens/aberdeen-showroom/" data-sheets-formula-bar-text-style="font-size:12px;color:#000000;font-weight:normal;text-decoration:underline;font-family:'docs-Google Sans';font-style:normal;text-decoration-skip-ink:none;"&gt;https://www.dmdesign.com/kitchens/aberdeen-showroom/&lt;/A&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Authentication and Connection:&lt;/STRONG&gt; Connect to your QlikView Server using the QlikView Management API. You will need to provide authentication credentials to establish a connection.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Retrieve Task Information:&lt;/STRONG&gt; Use the API methods to retrieve information about the specific task you're interested in. This might involve providing the task ID or task name as a parameter.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Retrieve Triggers:&lt;/STRONG&gt; Once you have the task information, you can use API methods to retrieve details about the triggers associated with that task. Triggers define the conditions under which a task should be executed.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sun, 27 Aug 2023 18:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QlikView-API-get-triggers-for-external-program-task/m-p/2110148#M19078</guid>
      <dc:creator>michael64</dc:creator>
      <dc:date>2023-08-27T18:13:31Z</dc:date>
    </item>
  </channel>
</rss>

