<?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: tREST http body problems using global variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tREST-http-body-problems-using-global-variable/m-p/2330530#M99599</link>
    <description>&lt;P&gt;thanks, seems to work. I tried&amp;nbsp;also with single quotes, but this was probably the point of confusion I suppose:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;When you close the JSON String before concatenation, you do not need to escape the "."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 15:59:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-23T15:59:08Z</dc:date>
    <item>
      <title>tREST http body problems using global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tREST-http-body-problems-using-global-variable/m-p/2330528#M99597</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I struggle to get a Zuora API call right in the rRest client. The API wants a JSON body as input..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP POST body:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"{&lt;BR /&gt;\"queryString\": \"select id, name, subscriptionid from Rateplan where id='abcdef123456' \"&lt;BR /&gt;}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; this works OK. But then getting the variable from database with tFlowIterate, it doesn't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1:&lt;/P&gt;&lt;P&gt;"{&lt;BR /&gt;\"queryString\": \"select id, name, subscriptionid from Rateplan where id=\" + ((String)globalMap.get("rateplan_id")) + \"&lt;BR /&gt;}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; invalid assignment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\"queryString\": \"select id, name, subscriptionid from Rateplan where id=\" + ((String)globalMap.get(\"rateplan_id\")) + \"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; malformed POST body content&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3,4, 5 =&amp;gt; other issues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the correct format of using global variable in the POST BODY?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tREST-http-body-problems-using-global-variable/m-p/2330528#M99597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T15:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: tREST http body problems using global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tREST-http-body-problems-using-global-variable/m-p/2330529#M99598</link>
      <description>&lt;P&gt;Try this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"{
\"queryString\": \"select id, name, subscriptionid from Rateplan where id='" + ((String)globalMap.get("rateplan_id")) + "'\"
}"&lt;/PRE&gt;&lt;P&gt;You are concatenating Strings. When you close the JSON String before concatenation, you do not need to escape the ". You also missed the single quotes (').&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tREST-http-body-problems-using-global-variable/m-p/2330529#M99598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T15:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: tREST http body problems using global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tREST-http-body-problems-using-global-variable/m-p/2330530#M99599</link>
      <description>&lt;P&gt;thanks, seems to work. I tried&amp;nbsp;also with single quotes, but this was probably the point of confusion I suppose:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;When you close the JSON String before concatenation, you do not need to escape the "."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tREST-http-body-problems-using-global-variable/m-p/2330530#M99599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T15:59:08Z</dc:date>
    </item>
  </channel>
</rss>

