<?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: 400 bad request when using Qlik-CLI in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904420#M16420</link>
    <description>&lt;P&gt;The Repository Service syntax (&lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Filtering.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Filtering.htm&lt;/A&gt;) which Qlik-Cli-Windows leverages would be something like this:&lt;/P&gt;&lt;P&gt;Get-QlikTask -Filter "name eq 'Reload Operations Monitor'"&lt;/P&gt;</description>
    <pubDate>Sun, 13 Mar 2022 22:55:10 GMT</pubDate>
    <dc:creator>Levi_Turner</dc:creator>
    <dc:date>2022-03-13T22:55:10Z</dc:date>
    <item>
      <title>400 bad request when using endpoint Get-QlikTask with Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904062#M16415</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I am trying to query for all tasks with this command using Qlik-CLI,&lt;/P&gt;
&lt;P&gt;I am able to connect successfully,&lt;/P&gt;
&lt;P&gt;The command is as follows:&lt;/P&gt;
&lt;P&gt;Get-QlikTask -filter TASK_11&lt;/P&gt;
&lt;P&gt;This produces the following error message:&lt;/P&gt;
&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;BR /&gt;At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:66 char:23&lt;BR /&gt;+ $result = Invoke-RestMethod @paramInvokeRestMethod @params&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebE &lt;BR /&gt;xception&lt;BR /&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Any ideas what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 20:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904062#M16415</guid>
      <dc:creator>cvalarcon</dc:creator>
      <dc:date>2022-10-05T20:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: 400 bad request when using Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904112#M16418</link>
      <description>&lt;P&gt;You're not using a proper filter syntax. What is "TASK_11"? A task name?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 14:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904112#M16418</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2022-03-11T14:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: 400 bad request when using Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904292#M16419</link>
      <description>&lt;P&gt;Hi Levi , "TASK_11"&amp;nbsp; is the task name , should be another parameter ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thansk&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 23:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904292#M16419</guid>
      <dc:creator>cvalarcon</dc:creator>
      <dc:date>2022-03-11T23:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: 400 bad request when using Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904420#M16420</link>
      <description>&lt;P&gt;The Repository Service syntax (&lt;A href="https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Filtering.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Filtering.htm&lt;/A&gt;) which Qlik-Cli-Windows leverages would be something like this:&lt;/P&gt;&lt;P&gt;Get-QlikTask -Filter "name eq 'Reload Operations Monitor'"&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 22:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1904420#M16420</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2022-03-13T22:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: 400 bad request when using Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1905586#M16436</link>
      <description>&lt;P&gt;Hi Levi now is ok . thank you&amp;nbsp; !!!&lt;/P&gt;
&lt;P&gt;Now I have another challenge for you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;with this result (with -full parameter and the task name) I need to save this task id in a variable to be able to automate this task or several tasks . So the question is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get the task id in powershell ? because when you create a new task you don´t know the task ID at the beginning . In order to start the task you need&amp;nbsp; this as a parameter.&amp;nbsp; &amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 18:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1905586#M16436</guid>
      <dc:creator>cvalarcon</dc:creator>
      <dc:date>2022-03-15T18:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: 400 bad request when using Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1906181#M16438</link>
      <description>&lt;P&gt;Well, what information do you have?&lt;/P&gt;&lt;P&gt;In the QMC, you can expose the ID value for the task:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Levi_Turner_0-1647455910967.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74656i027B5F60EE0207BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Levi_Turner_0-1647455910967.png" alt="Levi_Turner_0-1647455910967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When using Qlik-Cli-Windows, you can use the Get-QlikTask function like above with an adjusted filter.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 18:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1906181#M16438</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2022-03-16T18:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: 400 bad request when using Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1906202#M16439</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Levi, I konw this .&lt;/P&gt;
&lt;P&gt;The idea is to automate a reload task from the scratch using QLIK-CLI (not QMC), so I need create a script to do this :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;First create an app&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Create a task with this app&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Start the task in order to reload the app&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Copy this APP in folder for backup&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I did all step except the (3) because when you create a task (allway using QLIK-CLI) you don´t know the new ID task (all in Powershell, the idea is not use the QMC)&amp;nbsp; so I created a script in order to do this steps&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cvalarcon_0-1647460419842.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74658i382D283FDEE693D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cvalarcon_0-1647460419842.png" alt="cvalarcon_0-1647460419842.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;as you can see in the attach I create a .txt file to get the id task number . &lt;BR /&gt;But I don´k now how can I get this &lt;STRONG&gt;id task&lt;/STRONG&gt; &lt;STRONG&gt;in a variable&lt;/STRONG&gt; in order to add in the script to reload the task (3 step)&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 20:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1906202#M16439</guid>
      <dc:creator>cvalarcon</dc:creator>
      <dc:date>2022-03-16T20:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: 400 bad request when using Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1906205#M16440</link>
      <description>&lt;P&gt;You didn't display where that JSON blob came from, but I'm guessing it's from the cat command on line 19. Something like this should work:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;$myTask = (Get-Content /my/file.txt | ConvertFrom-Json).id&lt;/LI-CODE&gt;&lt;P&gt;(cat is just an alias for Get-Content)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 20:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1906205#M16440</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2022-03-16T20:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: 400 bad request when using Qlik-CLI</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1909878#M16506</link>
      <description>&lt;P&gt;Hi I like to import an qvf app in Powershell using&amp;nbsp; qlik-cli&amp;nbsp; :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Import-QlikApp -file C:\Users\calarcon\Documents\PASAJES\FETR0013855\STG_TRANSACCIONES_N30_COMPLIANCE.qvf&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the result is :&lt;/P&gt;
&lt;P&gt;Invoke-RestMethod : The remote server returned an error: (400) Bad Request.&lt;BR /&gt;At C:\Program Files (x86)\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:66 char:23&lt;BR /&gt;+ $result = Invoke-RestMethod @paramInvokeRestMethod @params&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;BR /&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;/P&gt;
&lt;P&gt;Can you help me about this , how can I do this ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 14:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/400-bad-request-when-using-endpoint-Get-QlikTask-with-Qlik-CLI/m-p/1909878#M16506</guid>
      <dc:creator>cvalarcon</dc:creator>
      <dc:date>2022-03-25T14:02:54Z</dc:date>
    </item>
  </channel>
</rss>

