<?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 Create a Qlikview Task using QMSAPI in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2502430#M21745</link>
    <description>&lt;P&gt;Is there a method without using C#&amp;nbsp; and directly use QMSAPI and create a Qlikview Task.&lt;/P&gt;
&lt;P&gt;something like this:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;$hdrs = @{}
$hdrs.Add("SOAPACTION","http://ws.qliktech.com/QMS/12/2/IQMS2/GetServices")
$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;GetServices xmlns="http://ws.qliktech.com/QMS/12/2/"&amp;gt;
&amp;lt;serviceTypes&amp;gt;All&amp;lt;/serviceTypes&amp;gt;
&amp;lt;/GetServices&amp;gt;
&amp;lt;/s:Body&amp;gt;
&amp;lt;/s:Envelope&amp;gt;'

$res = Invoke-WebRequest -Uri $url -Method Post -Body $body -UseDefaultCredential -Headers $hdrs

#Display result
$res.Content
&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Jan 2025 13:44:49 GMT</pubDate>
    <dc:creator>ArunQlIK9</dc:creator>
    <dc:date>2025-01-22T13:44:49Z</dc:date>
    <item>
      <title>Create a Qlikview Task using QMSAPI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2502430#M21745</link>
      <description>&lt;P&gt;Is there a method without using C#&amp;nbsp; and directly use QMSAPI and create a Qlikview Task.&lt;/P&gt;
&lt;P&gt;something like this:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="ckeditor_codeblock"&gt;$hdrs = @{}
$hdrs.Add("SOAPACTION","http://ws.qliktech.com/QMS/12/2/IQMS2/GetServices")
$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;GetServices xmlns="http://ws.qliktech.com/QMS/12/2/"&amp;gt;
&amp;lt;serviceTypes&amp;gt;All&amp;lt;/serviceTypes&amp;gt;
&amp;lt;/GetServices&amp;gt;
&amp;lt;/s:Body&amp;gt;
&amp;lt;/s:Envelope&amp;gt;'

$res = Invoke-WebRequest -Uri $url -Method Post -Body $body -UseDefaultCredential -Headers $hdrs

#Display result
$res.Content
&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jan 2025 13:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2502430#M21745</guid>
      <dc:creator>ArunQlIK9</dc:creator>
      <dc:date>2025-01-22T13:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Qlikview Task using QMSAPI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2504288#M21794</link>
      <description>&lt;P&gt;The QlikView-CLI will allow you to do that in PowerShell. (Install-Module QlikView-CLI)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;# This script connects to QlikView, retrieves source documents, allows the user to select documents,
# and creates new document tasks for the selected documents with a general and reload task.

$Connection = Connect-QlikView # Establishes a connection to the QlikView server

$SourceDocuments = Get-QVSourceDocuments # Retrieves a list of source documents from the QlikView server

$SelectedDocuments = $SourceDocuments | Out-GridView -OutputMode Multiple -Title "Select Documents to create task for:" # Displays a grid view for the user to select multiple documents

foreach ($Document in $SelectedDocuments) { # Iterates over each selected document
    
    $TaskDescription = "Task for $($Document.Name), Created $([datetime]::Now.ToString('yyyy-MM-dd HH:mm:ss'))" # Creates a task description with the document name and current timestamp
    $TaskName = "Task-$($Document.Name)" # Creates a task name based on the document name

    $NewTaskGeneral = New-QVTaskGeneral -Enabled $true -Taskdescription $TaskDescription -Taskname $TaskName # Creates a new general task with the specified description and name

    $NewTaskReload = New-QVTaskReload -Mode Full -Sectionaccessmode UseQDSAccount # Creates a new reload task with full mode and section access mode set to use QDS account

    $NewDocumentTask = New-QVDocumentTask -Document $Document -General $NewTaskGeneral -Reload $NewTaskReload -QDSID $Connection.QlikViewDistributionService[0].ID -Scope @([QlikView_CLI.QMSAPI.DocumentTaskScope]::General, [QlikView_CLI.QMSAPI.DocumentTaskScope]::Reload) # Creates a new document task with the specified document, general task, reload task, QDS ID, and scope
    
    Save-QVDocumentTask -Documenttask $NewDocumentTask # Saves the newly created document task
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 03:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2504288#M21794</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2025-02-04T03:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Qlikview Task using QMSAPI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2504639#M21800</link>
      <description>&lt;P&gt;Thanks for the reply Mark. Is this Qlikview-CLI is paid software we need to download or it will be there by default in Qlik Server?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 15:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2504639#M21800</guid>
      <dc:creator>ArunQlIK9</dc:creator>
      <dc:date>2025-02-05T15:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Qlikview Task using QMSAPI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2504715#M21802</link>
      <description>&lt;P&gt;It was created by Qlik Professional Services and released as open-source under the MIT license.&lt;/P&gt;
&lt;P&gt;This is not an official Qlik product and is not covered by Qlik Support. However, paid support is available through a Professional Services engagement.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 06:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-Qlikview-Task-using-QMSAPI/m-p/2504715#M21802</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2025-02-06T06:01:49Z</dc:date>
    </item>
  </channel>
</rss>

