<?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 [QRS API] API Calls with Powershell in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750397#M13344</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;On Dev Hub\Engine API there is an option to extract App Load Script&amp;nbsp;using following request:&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"handle": 1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"method": "GetScript",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"params": {}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Response:&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"jsonrpc": "2.0",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"id": 3,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"delta": true,&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;"result": {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"qScript": "///$tab Main\r\nSET ThousandSep=',';\r\nSET DecimalSep='.'; .....&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;}&lt;/STRONG&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;My aim is to get list of all applications on server and extract load script for each of them into file.&lt;/P&gt;&lt;P&gt;So i'm interesting how to call same method using Powershell.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how to implement this?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:19:52 GMT</pubDate>
    <dc:creator>alexndr</dc:creator>
    <dc:date>2024-11-16T01:19:52Z</dc:date>
    <item>
      <title>[QRS API] API Calls with Powershell</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750397#M13344</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;On Dev Hub\Engine API there is an option to extract App Load Script&amp;nbsp;using following request:&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"handle": 1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"method": "GetScript",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"params": {}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Response:&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"jsonrpc": "2.0",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"id": 3,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"delta": true,&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;"result": {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"qScript": "///$tab Main\r\nSET ThousandSep=',';\r\nSET DecimalSep='.'; .....&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;}&lt;/STRONG&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;My aim is to get list of all applications on server and extract load script for each of them into file.&lt;/P&gt;&lt;P&gt;So i'm interesting how to call same method using Powershell.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how to implement this?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750397#M13344</guid>
      <dc:creator>alexndr</dc:creator>
      <dc:date>2024-11-16T01:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: [QRS API] API Calls with Powershell</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750500#M13348</link>
      <description>&lt;P&gt;I am curious whether others have solved for this. The crux of the issue is that the request to the Engine neither goes over QRS nor is it a RESTful call. It's a request over a websocket which there isn't native PowerShell support for. There are likely ways to accomplish this by using C# or .NET code but it would increase the complexity of the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 21:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750500#M13348</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2020-10-07T21:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: [QRS API] API Calls with Powershell</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750582#M13350</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;You can do this with &lt;A href="https://github.com/qlik-oss/corectl/releases" target="_self"&gt;corectl &lt;/A&gt;&lt;/P&gt;&lt;P&gt;With corectl installed you can do the following:&lt;/P&gt;&lt;P&gt;corectl context create &amp;lt;name&amp;gt; --engine &amp;lt;QSEoW-URL&amp;gt;&lt;/P&gt;&lt;P&gt;corectl context use &amp;lt;name&amp;gt;&lt;/P&gt;&lt;P&gt;corectl context login (This will prompt you for your user credentials)&lt;/P&gt;&lt;P&gt;After that you should be able to validate that you've got it setup by running&lt;/P&gt;&lt;P&gt;corectl status&amp;nbsp; (It should say something like "Connected without app.... ")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm not a PowerShell guru but I can give you the puzzle pieces, or rather, this is how I'd do it in shellscript:&lt;/P&gt;&lt;P&gt;for id in $(corectl app ls -q); do corectl --app $id script get &amp;gt; $id.qvs; done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"corectl app ls -q" will give you all the IDs of the apps. "corectl --app &amp;lt;APPID/APPNAME&amp;gt; script get" will give you the script of that specific file.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 07:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750582#M13350</guid>
      <dc:creator>dxa</dc:creator>
      <dc:date>2020-10-08T07:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: [QRS API] API Calls with Powershell</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750590#M13351</link>
      <description>&lt;P&gt;Thanks for your reply. I will check it ASAP. I have a lot of security restrictions&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 08:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/1750590#M13351</guid>
      <dc:creator>alexndr</dc:creator>
      <dc:date>2020-10-08T08:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: [QRS API] API Calls with Powershell</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/2088930#M18739</link>
      <description>&lt;P&gt;Find a solution to this? I have hundreds of dashboards that I need to retrieve the script from.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 21:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/2088930#M18739</guid>
      <dc:creator>corriebyrd</dc:creator>
      <dc:date>2023-06-28T21:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: [QRS API] API Calls with Powershell</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/2088965#M18740</link>
      <description>&lt;P&gt;In the script posted on the following.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/edit-script-load-editor-with-net-SDK/m-p/1758697#M13488" target="_blank"&gt;https://community.qlik.com/t5/Integration-Extension-APIs/edit-script-load-editor-with-net-SDK/m-p/1758697#M13488&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;near the end there is a step that gets the script, modifies the script then puts it back on the server.&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;#Once we have the App we can Get the Load Script
$AppScript = $QEApp.GetScript()
&lt;/LI-CODE&gt;
&lt;P&gt;if you remove modify and update steps you could just do something such as this to output it.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;#Once we have the App we can Get the Load Script
$AppScript = $QEApp.GetScript()

$AppScript|out-file "C:\pathto\$($AppID)_script.txt"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 03:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-API-Calls-with-Powershell/m-p/2088965#M18740</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2023-06-29T03:06:46Z</dc:date>
    </item>
  </channel>
</rss>

