<?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: How to pass dynamic (body) values to tREST in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206247#M6389</link>
    <description>&lt;P&gt;Thanks for your helpful advice ! I get it now but i have an other error . as shown below :&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error2.PNG" style="width: 921px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8x9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138547i1D118B9DFC33CC9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8x9.png" alt="0683p000009M8x9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In the first line am printing my global variable OK but it seems like it is treated separtrly (in blocs ) some how as in the screenshot .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't realy get the error !&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any idea ?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 20:20:52 GMT</pubDate>
    <dc:creator>kakooo16</dc:creator>
    <dc:date>2020-04-15T20:20:52Z</dc:date>
    <item>
      <title>How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206241#M6383</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So , im trying to a dynamic value to a tREST body query : (here is a screen shot of my trest configuration) :&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="trest.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9U2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136586i29D0F5619B4753E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9U2.png" alt="0683p000009M9U2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;to Explain more&amp;nbsp; im getting an error as below&amp;nbsp; &amp;nbsp;:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 778px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9U7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150634i29A4811977C0BEC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9U7.png" alt="0683p000009M9U7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;When i use static values it works .&lt;/P&gt; 
&lt;P&gt;my job&amp;nbsp; is as such :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="capt3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9UC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153572iB6305E4A12400C7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9UC.png" alt="0683p000009M9UC.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I think that i have a syntax error in the query .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope this problem would be solved .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks again .&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206241#M6383</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2024-11-16T02:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206242#M6384</link>
      <description>&lt;P&gt;You need to use strings concatenation like this:&lt;/P&gt;&lt;PRE&gt;"{\"query\":\" blablabla
       product_simple_ids : [" + ((List)globalMap.get("myList")).get(i) + "]) blabla...&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 17:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206242#M6384</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-04-15T17:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206243#M6385</link>
      <description>Hello TRF ,&lt;BR /&gt;&lt;BR /&gt;It seems like the error is caused by&lt;BR /&gt;&lt;BR /&gt;((List)globalMap.get("myList")) : however the double quaotes are note supported in query ,so i ve put an \ to avoid them . But , seems that the problem still persist</description>
      <pubDate>Wed, 15 Apr 2020 17:20:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206243#M6385</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-15T17:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206244#M6386</link>
      <description>&lt;P&gt;Here is my new query :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;product_simple_ids: [ \\\"+((List)globalMap.get(\"myList\")).get(i)+\\\" ])&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 17:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206244#M6386</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-15T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206245#M6387</link>
      <description>&lt;P&gt;Is there a possible way to pass dynamic&amp;nbsp; global&amp;nbsp; variables and support the double quotes (") : such example :&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;product_simple_ids: [ \\\"+((List)globalMap.get(\"myList\")).get(i)+\\\" ])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im still blocked and needs some help please .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance .&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 18:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206245#M6387</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-15T18:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206246#M6388</link>
      <description>The basic rule you have to respect is that fixed parts must be between " but not variable parts issued from variables. Inside fixed parts, " must be protected by \.&lt;BR /&gt;Here is an example:&lt;BR /&gt;"a fixed string with \" inside"</description>
      <pubDate>Wed, 15 Apr 2020 18:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206246#M6388</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-04-15T18:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206247#M6389</link>
      <description>&lt;P&gt;Thanks for your helpful advice ! I get it now but i have an other error . as shown below :&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error2.PNG" style="width: 921px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8x9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138547i1D118B9DFC33CC9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8x9.png" alt="0683p000009M8x9.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In the first line am printing my global variable OK but it seems like it is treated separtrly (in blocs ) some how as in the screenshot .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't realy get the error !&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any idea ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 20:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206247#M6389</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-15T20:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206248#M6390</link>
      <description>Can't see the problem. Body field contains \n so it's printed on multiple lines. If it disturb the next component behaviour, remove them with something like row1.body.repalceAll("\n", "")</description>
      <pubDate>Wed, 15 Apr 2020 20:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206248#M6390</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-04-15T20:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass dynamic (body) values to tREST</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206249#M6391</link>
      <description>&lt;P&gt;And for the first element treated im getting this&amp;nbsp; :&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;marketplace_product_id to be  treated ==3ME-K110032032
.----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------.
|                                                                                                                                          tLogRow_1                                                                                                                                          |
|=---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------=|
|Body                                                                                                                                                                                                                                                                              |ERROR_CODE|
|=---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------=|
|{
    "errors": [
        {
            "message": "Syntax Error: Invalid number, expected digit but got: \"K\".",
            "locations": [
                {
                    "line": 1,
                    "column": 130
                }
            ]
        }
    ]
}|null      |&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 21:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-dynamic-body-values-to-tREST/m-p/2206249#M6391</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-15T21:03:47Z</dc:date>
    </item>
  </channel>
</rss>

