<?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: Call QMS API with PowerShell to obtain list of user documents in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Call-QMS-API-with-PowerShell-to-obtain-list-of-user-documents/m-p/1944098#M1290311</link>
    <description>&lt;P&gt;I found the issue with my script.&amp;nbsp;&lt;BR /&gt;In the body where I am passing the GUID I was not using the proper name.&lt;/P&gt;
&lt;P&gt;Instead of &amp;lt;guid&amp;gt; it should be&amp;nbsp;&amp;lt;qvsID&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;With that change the script works correctly.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 14:52:30 GMT</pubDate>
    <dc:creator>TdZinkOptum</dc:creator>
    <dc:date>2022-06-15T14:52:30Z</dc:date>
    <item>
      <title>Call QMS API with PowerShell to obtain list of user documents</title>
      <link>https://community.qlik.com/t5/QlikView/Call-QMS-API-with-PowerShell-to-obtain-list-of-user-documents/m-p/1944048#M1290308</link>
      <description>&lt;P&gt;I am trying to write a PowerShell script that will call the QMS API and give me a list of all user documents on the Qlikview server.&lt;BR /&gt;&lt;BR /&gt;My current script is giving me the following error:&lt;BR /&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;BR /&gt;&lt;BR /&gt;What am I missing in the body of the requset?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$url = "http://server-name:4799/QMS/Service"

#Obtain serice key
$service = New-WebServiceProxy -Uri $url -Namespace QlikViewServer -UseDefaultCredential
$serviceKey = $service.GetTimeLimitedServiceKey()

#GetUserDocuments
$hdrs = @{}
$hdrs.Add("SOAPACTION","http://ws.qliktech.com/QMS/12/2/IQMS2/GetUserDocuments")
$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;GetUserDocuments xmlns="http://ws.qliktech.com/QMS/12/2/"&amp;gt;
&amp;lt;guid&amp;gt;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;lt;/guid&amp;gt;
&amp;lt;/GetUserDocuments&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

[xml]$myXml = $res.Content&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-QMS-API-with-PowerShell-to-obtain-list-of-user-documents/m-p/1944048#M1290308</guid>
      <dc:creator>TdZinkOptum</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call QMS API with PowerShell to obtain list of user documents</title>
      <link>https://community.qlik.com/t5/QlikView/Call-QMS-API-with-PowerShell-to-obtain-list-of-user-documents/m-p/1944098#M1290311</link>
      <description>&lt;P&gt;I found the issue with my script.&amp;nbsp;&lt;BR /&gt;In the body where I am passing the GUID I was not using the proper name.&lt;/P&gt;
&lt;P&gt;Instead of &amp;lt;guid&amp;gt; it should be&amp;nbsp;&amp;lt;qvsID&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;With that change the script works correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 14:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Call-QMS-API-with-PowerShell-to-obtain-list-of-user-documents/m-p/1944098#M1290311</guid>
      <dc:creator>TdZinkOptum</dc:creator>
      <dc:date>2022-06-15T14:52:30Z</dc:date>
    </item>
  </channel>
</rss>

