<?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: Connect REST Post with request body in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039201#M85619</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/198356"&gt;@tayariib85&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;It seems like the issue in your script is due to the syntax error in the BODY parameter. You are using double quotes for the JSON body, and also using double quotes in the BODY parameter which causes a syntax error. To resolve this, you can either escape the double quotes in the JSON body, or use single quotes to define the JSON body in the LET statement.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Benoit&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 11:19:27 GMT</pubDate>
    <dc:creator>Benoit_C</dc:creator>
    <dc:date>2023-02-17T11:19:27Z</dc:date>
    <item>
      <title>Connect REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039167#M85616</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to make&amp;nbsp;&lt;SPAN&gt;Connection REST Post with request body, and here is what I am doing:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;First, I created a variable with the body&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LET vRequestBody = '{ "where": {}, "index": 0, "count": 1000 }';&lt;/P&gt;
&lt;P&gt;Second I used used the variable in WITH CONNECTION ()&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tayariib85_0-1676627803540.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100756i1441E516D10940DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tayariib85_0-1676627803540.png" alt="tayariib85_0-1676627803540.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I get this error&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tayariib85_1-1676627906283.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100757i82A1E2610F35A6E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tayariib85_1-1676627906283.png" alt="tayariib85_1-1676627906283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tayariib85_2-1676627990208.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/100758iCB55726B4BEB67B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tayariib85_2-1676627990208.png" alt="tayariib85_2-1676627990208.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any advice !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 10:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039167#M85616</guid>
      <dc:creator>tayariib85</dc:creator>
      <dc:date>2023-02-17T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Connect REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039198#M85618</link>
      <description>&lt;P&gt;I resolved it by adding&amp;nbsp; double quotes to the variable:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LET vRequestBody = replace(vRequestBody,'"',chr(34)&amp;amp;chr(34))&lt;/P&gt;
&lt;P&gt;Reference to this post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/WITH-CONNECTION-statement-BODY-with-Double-quote/m-p/1237636#M6586" target="_blank"&gt;https://community.qlik.com/t5/Integration-Extension-APIs/WITH-CONNECTION-statement-BODY-with-Double-quote/m-p/1237636#M6586&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 11:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039198#M85618</guid>
      <dc:creator>tayariib85</dc:creator>
      <dc:date>2023-02-17T11:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connect REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039201#M85619</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/198356"&gt;@tayariib85&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;It seems like the issue in your script is due to the syntax error in the BODY parameter. You are using double quotes for the JSON body, and also using double quotes in the BODY parameter which causes a syntax error. To resolve this, you can either escape the double quotes in the JSON body, or use single quotes to define the JSON body in the LET statement.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;
&lt;P&gt;Benoit&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 11:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039201#M85619</guid>
      <dc:creator>Benoit_C</dc:creator>
      <dc:date>2023-02-17T11:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connect REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039202#M85620</link>
      <description>&lt;P&gt;Edit: it seems you already solved the issue yourself, thank you a lot for coming back with your solution.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 11:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2039202#M85620</guid>
      <dc:creator>Benoit_C</dc:creator>
      <dc:date>2023-02-17T11:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connect REST Post with request body</title>
      <link>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2485220#M101243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a complete video that covers all the topics related to REST Connections (pagination, with connection, loops, etc) here&amp;nbsp;&lt;A href="https://youtu.be/lFwar30BNkQ?si=g-MIwnivViqRDuXK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://youtu.be/lFwar30BNkQ?si=g-MIwnivViqRDuXK&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 03:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Connect-REST-Post-with-request-body/m-p/2485220#M101243</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-10-04T03:10:40Z</dc:date>
    </item>
  </channel>
</rss>

