<?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 Not able to insert data into db through REST API from qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Not-able-to-insert-data-into-db-through-REST-API-from-qlikview/m-p/1694867#M725816</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to store data from qlikview to db through REST API by using Post method.&lt;/P&gt;&lt;P&gt;Please find below&amp;nbsp; my code.&lt;/P&gt;&lt;P&gt;vuser_slug= 'Jay';&lt;BR /&gt;vfeedback_type = 'Running';&lt;BR /&gt;vfeedback = 'Test';&lt;BR /&gt;Let vURL = 'my url';&lt;/P&gt;&lt;P&gt;LET vRequestBody ='{';&lt;/P&gt;&lt;P&gt;//Let vRequestBody = vRequestBody&amp;amp;'"id":"$(vid)",';&lt;/P&gt;&lt;P&gt;Let vRequestBody = vRequestBody&amp;amp;'"user_slug":"$(vuser_slug)",';&lt;/P&gt;&lt;P&gt;Let vRequestBody = vRequestBody&amp;amp;'"feedback_type":"$(vfeedback_type)"';&lt;BR /&gt;Let vRequestBody = vRequestBody&amp;amp;'"feedback":"$(vfeedback)",';&lt;/P&gt;&lt;P&gt;Let vRequestBody = vRequestBody&amp;amp;'}';&lt;/P&gt;&lt;P&gt;let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34));&lt;/P&gt;&lt;P&gt;CUSTOM CONNECT TO&amp;nbsp; (My Connection)&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;//"id",&lt;/P&gt;&lt;P&gt;"user_slug",&lt;BR /&gt;"feedback_type",&lt;BR /&gt;"feedback"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FROM JSON (wrap on) "root"&lt;BR /&gt;WITH CONNECTION(URL "$(vURL)",BODY "$(vRequestBody)");;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above code I am able to store empty row into database.&lt;/P&gt;&lt;P&gt;But the above defined row&amp;nbsp; along with data not able to store.&lt;/P&gt;&lt;P&gt;I am deeply stuck in this as it is required urgently.&lt;/P&gt;&lt;P&gt;Please help me in resolving this issue.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:45:50 GMT</pubDate>
    <dc:creator>djaykumar</dc:creator>
    <dc:date>2024-11-16T18:45:50Z</dc:date>
    <item>
      <title>Not able to insert data into db through REST API from qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Not-able-to-insert-data-into-db-through-REST-API-from-qlikview/m-p/1694867#M725816</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to store data from qlikview to db through REST API by using Post method.&lt;/P&gt;&lt;P&gt;Please find below&amp;nbsp; my code.&lt;/P&gt;&lt;P&gt;vuser_slug= 'Jay';&lt;BR /&gt;vfeedback_type = 'Running';&lt;BR /&gt;vfeedback = 'Test';&lt;BR /&gt;Let vURL = 'my url';&lt;/P&gt;&lt;P&gt;LET vRequestBody ='{';&lt;/P&gt;&lt;P&gt;//Let vRequestBody = vRequestBody&amp;amp;'"id":"$(vid)",';&lt;/P&gt;&lt;P&gt;Let vRequestBody = vRequestBody&amp;amp;'"user_slug":"$(vuser_slug)",';&lt;/P&gt;&lt;P&gt;Let vRequestBody = vRequestBody&amp;amp;'"feedback_type":"$(vfeedback_type)"';&lt;BR /&gt;Let vRequestBody = vRequestBody&amp;amp;'"feedback":"$(vfeedback)",';&lt;/P&gt;&lt;P&gt;Let vRequestBody = vRequestBody&amp;amp;'}';&lt;/P&gt;&lt;P&gt;let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34));&lt;/P&gt;&lt;P&gt;CUSTOM CONNECT TO&amp;nbsp; (My Connection)&lt;/P&gt;&lt;P&gt;RestConnectorMasterTable:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;//"id",&lt;/P&gt;&lt;P&gt;"user_slug",&lt;BR /&gt;"feedback_type",&lt;BR /&gt;"feedback"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FROM JSON (wrap on) "root"&lt;BR /&gt;WITH CONNECTION(URL "$(vURL)",BODY "$(vRequestBody)");;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the above code I am able to store empty row into database.&lt;/P&gt;&lt;P&gt;But the above defined row&amp;nbsp; along with data not able to store.&lt;/P&gt;&lt;P&gt;I am deeply stuck in this as it is required urgently.&lt;/P&gt;&lt;P&gt;Please help me in resolving this issue.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Not-able-to-insert-data-into-db-through-REST-API-from-qlikview/m-p/1694867#M725816</guid>
      <dc:creator>djaykumar</dc:creator>
      <dc:date>2024-11-16T18:45:50Z</dc:date>
    </item>
  </channel>
</rss>

