<?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>article Transfer Data from Qlik Sense to WEB SERVICE using Qlik REST Connector in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/ta-p/1491705</link>
    <description>&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi community,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I assume we all, once in a while, faced this question : "&lt;SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Is it possible to send a table from QlikSense to our WebService/database?"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So, without further due, the answer is : &lt;SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;YES !&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;I'll now share with you how I did to implement this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #000000; font-style: inherit; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #000000; font-style: inherit; font-family: inherit;"&gt;0) &lt;SPAN&gt;&lt;SPAN&gt;prerequisites&lt;/SPAN&gt;&lt;/SPAN&gt; : The WEB SERVICE is already created.. (obviously) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #000000; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;1) This is a Qlik Sense Table&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;table:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;//This is the alert table, in which  will be sent to the WS&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;load alert,&lt;SPAN&gt;RowNo() as row&lt;/SPAN&gt;, timestamp(date#(date,'DDMMYYYY'),'YYYY-MM-DD hh:mm:ss.ff') as date;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;load * inline [&lt;/P&gt;
&lt;P&gt;alert, date&lt;/P&gt;
&lt;P&gt;alert1,06/12/2017&lt;/P&gt;
&lt;P&gt;alert2,06/12/2017&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;PS &lt;/SPAN&gt;: The &lt;SPAN&gt;row &lt;SPAN&gt;field is created to browse all the alerts to send.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2) Make a Rest Connector with your Web Service (&lt;STRONG&gt;POST&lt;/STRONG&gt; method):&lt;/P&gt;
&lt;P&gt;&lt;IMG style="height: 287px; width: 383.995px; display: block; margin-left: auto; margin-right: auto;" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185975_Capture.PNG" border="0" alt="Capture.PNG" width="384" height="287" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG style="height: 379.264px; width: 378px; display: block; margin-left: auto; margin-right: auto;" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/185976_Capture.PNG" border="0" alt="Capture.PNG" width="378" height="379" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG style="height: 368.095px; width: 381px; display: block; margin-left: auto; margin-right: auto;" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/185977_Capture.PNG" border="0" alt="Capture.PNG" width="381" height="368" /&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;3) Import the data within the WS:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="height: 234px; width: 620px; display: block; margin-left: auto; margin-right: auto;" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/185978_Capture.PNG" border="0" alt="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LIB CONNECT TO 'Post Alert';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RestConnectorMasterTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SQL SELECT &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"alertName",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"dateCreation",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"dateValidation",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"utcodeValidator"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FROM JSON (wrap on) "root";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[root]:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LOAD [alertName] AS [alertName],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[dateCreation] AS [dateCreation],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[dateValidation] AS [dateValidation],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[utcodeValidator] AS [utcodeValidator]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RESIDENT RestConnectorMasterTable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DROP TABLE RestConnectorMasterTable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;4) The 4th and most important step, is to modify the script above, to control the request sent to the WS.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;For that, it's mandatory to add our &lt;SPAN&gt;&lt;STRONG&gt;Request Body &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;a)&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RestConnectorMasterTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SQL SELECT &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"alertName",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"dateCreation",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"dateValidation",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"utcodeValidator"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FROM JSON (wrap on) "root" &lt;SPAN&gt;WITH CONNECTION(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="; color: #339966; font-size: 14pt;"&gt; BODY "$(vRequestBody)"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; );&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[root]:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LOAD [alertName] AS [alertName],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[dateCreation] AS [dateCreation],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[dateValidation] AS [dateValidation],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[utcodeValidator] AS [utcodeValidator]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RESIDENT RestConnectorMasterTable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DROP TABLE RestConnectorMasterTable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;b) &lt;/STRONG&gt;Let's now define the request body.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Depends on the WS (how It's constructed) ;  This phase is handled by experts, as Qlikers, we just ask the question to know what to do..)&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 18pt;"&gt;FIRST CASE: send the alerts one by one : &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 18pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;For this case: the request body for our Web Service should be as follow:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;send :&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #575757;"&gt;{"alertName": "Alert1", "dateCreation": "2017-12-06 14:59:25.00"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;then&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #575757;"&gt;{"alertName": "Alert2", "dateCreation": "&lt;STRONG style="; color: #575757; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2017-12-06&lt;/STRONG&gt; 14:59:26.00"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #575757;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;/this the part where we use the rest connector to send the table alert to the DB&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;//each time we peek and alert and its date and store them in variables&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;for a=0 to FieldValueCount('row')-1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vAlert = Peek('alert',$(a), 'alerts'); &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;Let vDateCreation = Peek('DateAlertes',$(a),'alerts');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;//here we write our body request using the created variables and send them (one by one)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;//This is the Json Request to post in the  Web Service&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #00ccff;"&gt;LET vRequestBody ='{';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody = vRequestBody&amp;amp;'"alertName":"$(vAlert)",';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody = vRequestBody&amp;amp;'"dateCreation":"$(vDateCreation)"';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody = vRequestBody&amp;amp;'}';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #00ccff;"&gt;let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34)); &lt;SPAN&gt;//this is mandatory&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'Post Alert';&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;"alertName",&lt;/P&gt;
&lt;P&gt;"dateCreation",&lt;/P&gt;
&lt;P&gt;"dateValidation",&lt;/P&gt;
&lt;P&gt;"utcodeValidator"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root" &lt;STRONG style="color: #339966;"&gt;WITH CONNECTION(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #339966;"&gt; BODY "$(vRequestBody)"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;[root]:&lt;/P&gt;
&lt;P&gt;LOAD [alertName] AS [alertName],&lt;/P&gt;
&lt;P&gt;[dateCreation] AS [dateCreation],&lt;/P&gt;
&lt;P&gt;[dateValidation] AS [dateValidation],&lt;/P&gt;
&lt;P&gt;[utcodeValidator] AS [utcodeValidator]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;SPAN&gt;next a&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 18pt;"&gt;SECOND CASE: send all the alerts in one shot : &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;For this case: the request body for our Web Service should be as follow:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;send: &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #575757;"&gt;{&lt;STRONG style="; color: #575757; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{"alertName": "Alert1", "dateCreation": "2017-12-06 14:59:25.00"}&lt;/STRONG&gt;,&lt;STRONG style="; color: #575757; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{"alertName": "Alert2", "dateCreation": "&lt;STRONG style="; color: #575757; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2017-12-06&lt;/STRONG&gt; 14:59:26.00"}&lt;/STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 18pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff9900;"&gt;Let vRequestBody ='[';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;for a=0 to FieldValueCount('row')-1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody = vRequestBody&amp;amp; '{"alertName" :'&amp;amp;'"'&amp;amp;  Peek('alert',$(a), 'alerts')&amp;amp;'"'&amp;amp;',' &amp;amp; '"dateCreation":'&amp;amp;'"'  &amp;amp; Peek('DateAlertes',$(a), 'alerts')&amp;amp;'"'&amp;amp;'},';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff9900;"&gt;next a&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;// this below is to eliminate the last ',' created&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Let vRequestBody = left(vRequestBody,len(vRequestBody)-1);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody=vRequestBody&amp;amp; ']';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34));&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'Post Alert';&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;"alertName",&lt;/P&gt;
&lt;P&gt;"dateCreation",&lt;/P&gt;
&lt;P&gt;"dateValidation",&lt;/P&gt;
&lt;P&gt;"utcodeValidator"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root" &lt;STRONG style="color: #339966;"&gt;WITH CONNECTION(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #339966;"&gt; BODY "$(vRequestBody)"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;[root]:&lt;/P&gt;
&lt;P&gt;LOAD [alertName] AS [alertName],&lt;/P&gt;
&lt;P&gt;[dateCreation] AS [dateCreation],&lt;/P&gt;
&lt;P&gt;[dateValidation] AS [dateValidation],&lt;/P&gt;
&lt;P&gt;[utcodeValidator] AS [utcodeValidator]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;That's all folks.. Hope this could be of a help for someone out there &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Omar BEN SALEM.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 14:43:00 GMT</pubDate>
    <dc:creator>OmarBenSalem</dc:creator>
    <dc:date>2022-11-30T14:43:00Z</dc:date>
    <item>
      <title>Transfer Data from Qlik Sense to WEB SERVICE using Qlik REST Connector</title>
      <link>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/ta-p/1491705</link>
      <description>&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi community,&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I assume we all, once in a while, faced this question : "&lt;SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Is it possible to send a table from QlikSense to our WebService/database?"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;So, without further due, the answer is : &lt;SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;YES !&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;I'll now share with you how I did to implement this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #000000; font-style: inherit; font-family: inherit;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #000000; font-style: inherit; font-family: inherit;"&gt;0) &lt;SPAN&gt;&lt;SPAN&gt;prerequisites&lt;/SPAN&gt;&lt;/SPAN&gt; : The WEB SERVICE is already created.. (obviously) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #000000; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;1) This is a Qlik Sense Table&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;table:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;//This is the alert table, in which  will be sent to the WS&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;load alert,&lt;SPAN&gt;RowNo() as row&lt;/SPAN&gt;, timestamp(date#(date,'DDMMYYYY'),'YYYY-MM-DD hh:mm:ss.ff') as date;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;load * inline [&lt;/P&gt;
&lt;P&gt;alert, date&lt;/P&gt;
&lt;P&gt;alert1,06/12/2017&lt;/P&gt;
&lt;P&gt;alert2,06/12/2017&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;PS &lt;/SPAN&gt;: The &lt;SPAN&gt;row &lt;SPAN&gt;field is created to browse all the alerts to send.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;2) Make a Rest Connector with your Web Service (&lt;STRONG&gt;POST&lt;/STRONG&gt; method):&lt;/P&gt;
&lt;P&gt;&lt;IMG style="height: 287px; width: 383.995px; display: block; margin-left: auto; margin-right: auto;" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185975_Capture.PNG" border="0" alt="Capture.PNG" width="384" height="287" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG style="height: 379.264px; width: 378px; display: block; margin-left: auto; margin-right: auto;" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/185976_Capture.PNG" border="0" alt="Capture.PNG" width="378" height="379" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG style="height: 368.095px; width: 381px; display: block; margin-left: auto; margin-right: auto;" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/185977_Capture.PNG" border="0" alt="Capture.PNG" width="381" height="368" /&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;3) Import the data within the WS:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="height: 234px; width: 620px; display: block; margin-left: auto; margin-right: auto;" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/185978_Capture.PNG" border="0" alt="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LIB CONNECT TO 'Post Alert';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RestConnectorMasterTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SQL SELECT &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"alertName",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"dateCreation",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"dateValidation",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"utcodeValidator"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FROM JSON (wrap on) "root";&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[root]:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LOAD [alertName] AS [alertName],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[dateCreation] AS [dateCreation],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[dateValidation] AS [dateValidation],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[utcodeValidator] AS [utcodeValidator]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RESIDENT RestConnectorMasterTable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DROP TABLE RestConnectorMasterTable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;4) The 4th and most important step, is to modify the script above, to control the request sent to the WS.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;For that, it's mandatory to add our &lt;SPAN&gt;&lt;STRONG&gt;Request Body &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;a)&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RestConnectorMasterTable:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SQL SELECT &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"alertName",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"dateCreation",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"dateValidation",&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"utcodeValidator"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FROM JSON (wrap on) "root" &lt;SPAN&gt;WITH CONNECTION(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="; color: #339966; font-size: 14pt;"&gt; BODY "$(vRequestBody)"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; );&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[root]:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;LOAD [alertName] AS [alertName],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[dateCreation] AS [dateCreation],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[dateValidation] AS [dateValidation],&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[utcodeValidator] AS [utcodeValidator]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RESIDENT RestConnectorMasterTable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;DROP TABLE RestConnectorMasterTable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;b) &lt;/STRONG&gt;Let's now define the request body.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Depends on the WS (how It's constructed) ;  This phase is handled by experts, as Qlikers, we just ask the question to know what to do..)&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 18pt;"&gt;FIRST CASE: send the alerts one by one : &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 18pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;For this case: the request body for our Web Service should be as follow:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;send :&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #575757;"&gt;{"alertName": "Alert1", "dateCreation": "2017-12-06 14:59:25.00"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;then&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #575757;"&gt;{"alertName": "Alert2", "dateCreation": "&lt;STRONG style="; color: #575757; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2017-12-06&lt;/STRONG&gt; 14:59:26.00"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #575757;"&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;/this the part where we use the rest connector to send the table alert to the DB&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;//each time we peek and alert and its date and store them in variables&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;for a=0 to FieldValueCount('row')-1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vAlert = Peek('alert',$(a), 'alerts'); &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;Let vDateCreation = Peek('DateAlertes',$(a),'alerts');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;//here we write our body request using the created variables and send them (one by one)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;//This is the Json Request to post in the  Web Service&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #00ccff;"&gt;LET vRequestBody ='{';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody = vRequestBody&amp;amp;'"alertName":"$(vAlert)",';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody = vRequestBody&amp;amp;'"dateCreation":"$(vDateCreation)"';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody = vRequestBody&amp;amp;'}';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #00ccff;"&gt;let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34)); &lt;SPAN&gt;//this is mandatory&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'Post Alert';&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;"alertName",&lt;/P&gt;
&lt;P&gt;"dateCreation",&lt;/P&gt;
&lt;P&gt;"dateValidation",&lt;/P&gt;
&lt;P&gt;"utcodeValidator"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root" &lt;STRONG style="color: #339966;"&gt;WITH CONNECTION(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #339966;"&gt; BODY "$(vRequestBody)"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;[root]:&lt;/P&gt;
&lt;P&gt;LOAD [alertName] AS [alertName],&lt;/P&gt;
&lt;P&gt;[dateCreation] AS [dateCreation],&lt;/P&gt;
&lt;P&gt;[dateValidation] AS [dateValidation],&lt;/P&gt;
&lt;P&gt;[utcodeValidator] AS [utcodeValidator]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;SPAN&gt;next a&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 18pt;"&gt;SECOND CASE: send all the alerts in one shot : &lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;For this case: the request body for our Web Service should be as follow:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN&gt;send: &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG style="; color: #575757;"&gt;{&lt;STRONG style="; color: #575757; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{"alertName": "Alert1", "dateCreation": "2017-12-06 14:59:25.00"}&lt;/STRONG&gt;,&lt;STRONG style="; color: #575757; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{"alertName": "Alert2", "dateCreation": "&lt;STRONG style="; color: #575757; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2017-12-06&lt;/STRONG&gt; 14:59:26.00"}&lt;/STRONG&gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="font-size: 18pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff9900;"&gt;Let vRequestBody ='[';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;for a=0 to FieldValueCount('row')-1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody = vRequestBody&amp;amp; '{"alertName" :'&amp;amp;'"'&amp;amp;  Peek('alert',$(a), 'alerts')&amp;amp;'"'&amp;amp;',' &amp;amp; '"dateCreation":'&amp;amp;'"'  &amp;amp; Peek('DateAlertes',$(a), 'alerts')&amp;amp;'"'&amp;amp;'},';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff9900;"&gt;next a&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;// this below is to eliminate the last ',' created&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Let vRequestBody = left(vRequestBody,len(vRequestBody)-1);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Let vRequestBody=vRequestBody&amp;amp; ']';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;let vRequestBody = replace(vRequestBody,'"', chr(34)&amp;amp;chr(34));&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;LIB CONNECT TO 'Post Alert';&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;"alertName",&lt;/P&gt;
&lt;P&gt;"dateCreation",&lt;/P&gt;
&lt;P&gt;"dateValidation",&lt;/P&gt;
&lt;P&gt;"utcodeValidator"&lt;/P&gt;
&lt;P&gt;FROM JSON (wrap on) "root" &lt;STRONG style="color: #339966;"&gt;WITH CONNECTION(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: #339966;"&gt; BODY "$(vRequestBody)"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;[root]:&lt;/P&gt;
&lt;P&gt;LOAD [alertName] AS [alertName],&lt;/P&gt;
&lt;P&gt;[dateCreation] AS [dateCreation],&lt;/P&gt;
&lt;P&gt;[dateValidation] AS [dateValidation],&lt;/P&gt;
&lt;P&gt;[utcodeValidator] AS [utcodeValidator]&lt;/P&gt;
&lt;P&gt;RESIDENT RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;DROP TABLE RestConnectorMasterTable;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;That's all folks.. Hope this could be of a help for someone out there &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Omar BEN SALEM.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/ta-p/1491705</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2022-11-30T14:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Data from Qlik Sense to WEB SERVICE using Qlik REST Connector</title>
      <link>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/tac-p/1491706#M842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean to say the code or steps you mention above will allow to send and store qliksense data into database ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 16:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/tac-p/1491706#M842</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2017-12-08T16:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Data from Qlik Sense to WEB SERVICE using Qlik REST Connector</title>
      <link>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/tac-p/1491707#M843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes indeed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 16:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/tac-p/1491707#M843</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2017-12-08T16:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Data from Qlik Sense to WEB SERVICE using Qlik REST Connector</title>
      <link>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/tac-p/1491708#M844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, how do we achieve this at the visualization layer? Users will make some selection and click a button to trigger the POST action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2018 17:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/tac-p/1491708#M844</guid>
      <dc:creator>jerifortune</dc:creator>
      <dc:date>2018-04-09T17:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Data from Qlik Sense to WEB SERVICE using Qlik REST Connector</title>
      <link>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/tac-p/2462351#M2185</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1336"&gt;@OmarBenSalem&lt;/a&gt;&amp;nbsp;Please , can you explain why it have to replace '"" &lt;STRONG&gt;twice&lt;/STRONG&gt; with chr(34) and not only one?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 21:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Transfer-Data-from-Qlik-Sense-to-WEB-SERVICE-using-Qlik-REST/tac-p/2462351#M2185</guid>
      <dc:creator>LuisIdrovo</dc:creator>
      <dc:date>2024-06-13T21:04:20Z</dc:date>
    </item>
  </channel>
</rss>

