<?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: POST REST Connection works in Postman but not in Qlik in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2491229#M14293</link>
    <description>&lt;P&gt;Thank you again for responding! Your explanation of the JSON syntax within the connection has solved the issue. As expected, it was a simple syntax error preventing the requesting from succeeding. Here is the body that finally worked:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADicamillo_0-1730937234270.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173933i11D27CAC59DB8D1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADicamillo_0-1730937234270.png" alt="ADicamillo_0-1730937234270.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you again.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 23:54:47 GMT</pubDate>
    <dc:creator>ADicamillo</dc:creator>
    <dc:date>2024-11-06T23:54:47Z</dc:date>
    <item>
      <title>POST REST Connection works in Postman but not in Qlik</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2490895#M14286</link>
      <description>&lt;P&gt;This seems to be a very common question with very little successful responses.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am attempting to pull ticket data from our OneDesk Environment so that I can build a dashboard. I am able to successfully connect using a GET REST connection to pull the information for a specific ticket ID, but I am unable to pull a list of IDs using the POST / filter method proposed by OneDesk. The POST call works just fine in Postman, but of course, I am met with a "Bad Request" error when attempting in Qlik SaaS.&lt;/P&gt;
&lt;P&gt;Please view below screenshots to view the FAILED attempt to pull the list of all IDs. I have included the SUCCESSFUL attempt in Postman as the first image.&lt;/P&gt;
&lt;P&gt;The syntax for the body was derived from a community article I found marked as an answer to a similar query:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/REST-connection-x-www-form-urlencoded/td-p/2085774" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/App-Development/REST-connection-x-www-form-urlencoded/td-p/2085774&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It states that you can:&lt;/P&gt;
&lt;P&gt;format the request as PowerShell - RestMethod in Postman and then simply Copy Paste the $body content in Qlik.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADicamillo_0-1730822398035.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173835i35AD95F403F50A76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADicamillo_0-1730822398035.png" alt="ADicamillo_0-1730822398035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FAILURE_2 - QlikAttempt.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173837i420EA437512D9753/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FAILURE_2 - QlikAttempt.png" alt="FAILURE_2 - QlikAttempt.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FAILURE_3 - QlikAttempt.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173838iAF5A1098878840F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FAILURE_3 - QlikAttempt.png" alt="FAILURE_3 - QlikAttempt.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FAILURE_4 - QlikAttempt.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173839i7E1AFFE3279CD5A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FAILURE_4 - QlikAttempt.png" alt="FAILURE_4 - QlikAttempt.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FAILURE_5 - QlikAttempt.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173840iD87F8AE1332BF789/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FAILURE_5 - QlikAttempt.png" alt="FAILURE_5 - QlikAttempt.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FAILURE_6 - QlikAttempt.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173841iCC2606E97B94BF4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FAILURE_6 - QlikAttempt.png" alt="FAILURE_6 - QlikAttempt.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FAILURE_7 - QlikAttempt.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173842i833976064E06BFBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FAILURE_7 - QlikAttempt.png" alt="FAILURE_7 - QlikAttempt.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Please let me know if there is any additional information I can provide.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 16:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2490895#M14286</guid>
      <dc:creator>ADicamillo</dc:creator>
      <dc:date>2024-11-05T16:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: POST REST Connection works in Postman but not in Qlik</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2490977#M14288</link>
      <description>&lt;P&gt;The body should be valid JSON.&amp;nbsp; You only post the body contents, not the whole line (i.e. the highlighted part):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leigh_Kennedy_0-1730865234548.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173870i027D746D323A849C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Leigh_Kennedy_0-1730865234548.png" alt="Leigh_Kennedy_0-1730865234548.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm not saying that's the final solution, but you don't want the parts outside of {}.&amp;nbsp; I use two double quotes (i.e. "" ) rather than a backtick before the double quote (i.e. `" ), but not sure if that matters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 06:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2490977#M14288</guid>
      <dc:creator>Leigh_Kennedy</dc:creator>
      <dc:date>2024-11-06T06:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: POST REST Connection works in Postman but not in Qlik</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2491179#M14291</link>
      <description>&lt;P&gt;Appreciate the response! Unfortunately the connection is still failing even with the adjustments:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADicamillo_0-1730910737460.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173918i03EE33B507ABD9D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADicamillo_0-1730910737460.png" alt="ADicamillo_0-1730910737460.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I've tried removing rows, putting it all on one line, without quotes, with quotes.... I am not sure what else to try at this point.&lt;/P&gt;
&lt;P&gt;The frustrating thing is that this works in Postman without issues. Why on earth would it be so easily accomplished in Postman but not in Qlik. With the amount of inquiries / submitted issues regarding POST not working in Qlik I am beginning to lose hope.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 16:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2491179#M14291</guid>
      <dc:creator>ADicamillo</dc:creator>
      <dc:date>2024-11-06T16:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: POST REST Connection works in Postman but not in Qlik</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2491227#M14292</link>
      <description>&lt;P&gt;Here is an example of one of mine:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Leigh_Kennedy_1-1730935638345.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173932iDFAC1F1335EF768F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Leigh_Kennedy_1-1730935638345.png" alt="Leigh_Kennedy_1-1730935638345.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When entering JSON directly into the request body section of the connection, I only need to use regular double quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I do it in the script (where I replace the body using with connection), I need to use 2 double quoted together:&lt;BR /&gt;&lt;BR /&gt;let vBody = '{&lt;BR /&gt;""name"": ""bob"",&lt;BR /&gt;""job"": ""leader""&lt;BR /&gt;}';&lt;BR /&gt;&lt;BR /&gt;I don't have access to OneDesk, but looking at the documentation on their site, the error you get isn't documented.&amp;nbsp; I am wondering if their are logs you can look at from the OneDesk side that might show you what it received?&amp;nbsp; If not, can their support tell you what was received?&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 23:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2491227#M14292</guid>
      <dc:creator>Leigh_Kennedy</dc:creator>
      <dc:date>2024-11-06T23:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: POST REST Connection works in Postman but not in Qlik</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2491229#M14293</link>
      <description>&lt;P&gt;Thank you again for responding! Your explanation of the JSON syntax within the connection has solved the issue. As expected, it was a simple syntax error preventing the requesting from succeeding. Here is the body that finally worked:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADicamillo_0-1730937234270.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/173933i11D27CAC59DB8D1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADicamillo_0-1730937234270.png" alt="ADicamillo_0-1730937234270.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you again.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 23:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/POST-REST-Connection-works-in-Postman-but-not-in-Qlik/m-p/2491229#M14293</guid>
      <dc:creator>ADicamillo</dc:creator>
      <dc:date>2024-11-06T23:54:47Z</dc:date>
    </item>
  </channel>
</rss>

