<?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: Connection REST Post with request body in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1151495#M20655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Cláudio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having the exact same problem. Did you have any luck with that ? If so, could you share the solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 19:39:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-12-22T19:39:59Z</dc:date>
    <item>
      <title>Connection REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1151494#M20654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to change request body in JSON script on WITH CONNECTION to read any pages? I'm using method POST with request body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My actual scenario is: on my string I can only pull twenty registries per page but I need to increment a loop to get all the others registries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 18:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1151494#M20654</guid>
      <dc:creator>claudio_reis_we</dc:creator>
      <dc:date>2016-07-13T18:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Connection REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1151495#M20655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Cláudio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having the exact same problem. Did you have any luck with that ? If so, could you share the solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 19:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1151495#M20655</guid>
      <dc:creator />
      <dc:date>2016-12-22T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connection REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1151496#M20656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hello, Gleybson&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I solved ... follow instructions below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;1. Create a REST connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="Imagem_1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150325_Imagem_1.png" style="height: 304px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2. Write the script below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LIB CONNECT TO 'Categoria';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Config:&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; "total_de_paginas"&lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WITH CONNECTION(Url "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://XXXXXX/categorias/" rel="nofollow" target="_blank"&gt;http://XXXXXX/categorias/&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let total = Peek('total_de_paginas',0,'Config');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let totalfetched = 0;&lt;/P&gt;&lt;P&gt;let vPagina = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;for startAt = 1 to total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vRequestBody = '{"call":"ListarCategorias","app_key":"XXXXXXXX","app_secret":"XXXXXXXXXX","param":[{"pagina":"$(vPagina)","registros_por_pagina":100,"apenas_importado_api":"N"}]}';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; "__KEY_root",&lt;/P&gt;&lt;P&gt;&amp;nbsp; (SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; "codigo",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "conta_despesa",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "conta_inativa",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "conta_receita",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "definida_pelo_usuario",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "descricao",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "descricao_padrao",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "id_conta_contabil",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "nao_exibir",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "natureza",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "tag_conta_contabil",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "totalizadora",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "transferencia",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "__FK_categoria_cadastro"&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM "categoria_cadastro" FK "__FK_categoria_cadastro")&lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WITH CONNECTION(Url "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://XXXXXX/categorias/" rel="nofollow" target="_blank"&gt;http://XXXXXX/categorias/&lt;/A&gt;&lt;SPAN&gt;", BODY "$(vRequestBody)");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vPagina = vPagina + 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;NEXT startAt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Categorias:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; [codigo] AS [codigo],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [conta_despesa] AS [conta_despesa],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [conta_inativa] AS [conta_inativa],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [conta_receita] AS [conta_receita],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [definida_pelo_usuario] AS [definida_pelo_usuario],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [descricao] AS [descricao],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [descricao_padrao] AS [descricao_padrao],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [id_conta_contabil] AS [id_conta_contabil],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [nao_exibir] AS [nao_exibir],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [natureza] AS [natureza],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [tag_conta_contabil] AS [tag_conta_contabil],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [totalizadora] AS [totalizadora],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [transferencia] AS [transferencia],&lt;/P&gt;&lt;P&gt;&amp;nbsp; [__FK_categoria_cadastro] AS [__KEY_root]&lt;/P&gt;&lt;P&gt;RESIDENT RestConnectorMasterTable&lt;/P&gt;&lt;P&gt;WHERE NOT IsNull([__FK_categoria_cadastro]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DROP TABLE RestConnectorMasterTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jan 2017 13:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1151496#M20656</guid>
      <dc:creator>claudio_reis_we</dc:creator>
      <dc:date>2017-01-21T13:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connection REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1947539#M78087</link>
      <description>&lt;P&gt;Looks fine, but it doesn't seem to woirk in my case, despite various tweaking.&lt;/P&gt;
&lt;P&gt;Basically , the POST call is answered properly with the original BODY set in the REST Connection form, but once I try to change the BODY using WITH CONNECTION() sufix, I've got this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Connector error: Unexpected character encountered while parsing value: &amp;lt;. Path '', line 0, position 0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Funny enough, it's a completely public API I am trying with, that doesn't even require user &amp;amp; pass or other authentification...&lt;/P&gt;
&lt;P&gt;Asked Qlik for support&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 16:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connection-REST-Post-with-request-body/m-p/1947539#M78087</guid>
      <dc:creator>cotiso_hanganu</dc:creator>
      <dc:date>2022-06-23T16:25:37Z</dc:date>
    </item>
  </channel>
</rss>

