<?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 Talend: How can I set global variable into tREST HTTP Body? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336021#M104512</link>
    <description>&lt;P&gt;I am developing a new REST webservice for our application.&lt;/P&gt;&lt;P&gt;My goal is to pass instead of the fixed date, a date that I retrieve from a database ,&lt;/P&gt;&lt;P&gt;but as I report in the images below the parameter does not work correctly.&lt;/P&gt;&lt;P&gt;While if I pass the date as per the field below the job works correctly.&lt;/P&gt;&lt;P&gt;Would you know how to help me. Thank you&lt;/P&gt;&lt;P&gt;" {&lt;/P&gt;&lt;P&gt;"tokenKey": "ofsodfdsnsd frrfmoic",&lt;/P&gt;&lt;P&gt;"dbKey": "dd_ab",&lt;/P&gt;&lt;P&gt;"customerKey": "lp_ProdG100",&lt;/P&gt;&lt;P&gt;"from":"2022-11-01",&lt;/P&gt;&lt;P&gt;"period": "DAY",&lt;/P&gt;&lt;P&gt;"profile": 1&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDR7dAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150835i7975E6752838E34B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDR7dAAG.png" alt="0695b00000aDR7dAAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDR7iAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155743iA718C12BF0E34CA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDR7iAAG.png" alt="0695b00000aDR7iAAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:18:44 GMT</pubDate>
    <dc:creator>DScolari1623331702</dc:creator>
    <dc:date>2024-11-15T22:18:44Z</dc:date>
    <item>
      <title>Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336021#M104512</link>
      <description>&lt;P&gt;I am developing a new REST webservice for our application.&lt;/P&gt;&lt;P&gt;My goal is to pass instead of the fixed date, a date that I retrieve from a database ,&lt;/P&gt;&lt;P&gt;but as I report in the images below the parameter does not work correctly.&lt;/P&gt;&lt;P&gt;While if I pass the date as per the field below the job works correctly.&lt;/P&gt;&lt;P&gt;Would you know how to help me. Thank you&lt;/P&gt;&lt;P&gt;" {&lt;/P&gt;&lt;P&gt;"tokenKey": "ofsodfdsnsd frrfmoic",&lt;/P&gt;&lt;P&gt;"dbKey": "dd_ab",&lt;/P&gt;&lt;P&gt;"customerKey": "lp_ProdG100",&lt;/P&gt;&lt;P&gt;"from":"2022-11-01",&lt;/P&gt;&lt;P&gt;"period": "DAY",&lt;/P&gt;&lt;P&gt;"profile": 1&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDR7dAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150835i7975E6752838E34B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDR7dAAG.png" alt="0695b00000aDR7dAAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDR7iAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155743iA718C12BF0E34CA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDR7iAAG.png" alt="0695b00000aDR7iAAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336021#M104512</guid>
      <dc:creator>DScolari1623331702</dc:creator>
      <dc:date>2024-11-15T22:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336022#M104513</link>
      <description>&lt;P&gt;Hello @Davide Scolari​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Regarding to your job snapshot, you can get the date value by globalMap.get("row93.oggi")&lt;/P&gt;&lt;P&gt;please reset it in the HTTP Body of tREST component to re-try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Aiming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336022#M104513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T08:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336023#M104514</link>
      <description>&lt;P&gt;Sorry, but I didn't quite understand.&lt;/P&gt;&lt;P&gt;I tried to rewrite the code in the following way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;\"from\":\" "+((Date)globalMap.get("row93.oggi"))+"\",&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is correct, but no data is returned.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336023#M104514</guid>
      <dc:creator>DScolari1623331702</dc:creator>
      <dc:date>2022-12-01T08:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336024#M104515</link>
      <description>&lt;P&gt;Another way is to setup a Customize key for the tFlowToIterate component in the job like the below&lt;/P&gt;&lt;P&gt;then rewrite the code in tREST body like&lt;/P&gt;&lt;P&gt;\"from\":\" "+globalMap.get("oggi")+"\",&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDREAAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130125i65959A807FBFD72D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDREAAA4.png" alt="0695b00000aDREAAA4.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336024#M104515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T08:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336025#M104516</link>
      <description>&lt;P&gt;Thank you, I think I have identified the error.&lt;/P&gt;&lt;P&gt;Instead of just returning me '2022-11-02' it gives me '2022-11-02 00:00:00' consequently it goes into error. I don't know how to force it&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDRGBAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150567i5BBCB261FF07C3C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDRGBAA4.png" alt="0695b00000aDRGBAA4.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 09:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336025#M104516</guid>
      <dc:creator>DScolari1623331702</dc:creator>
      <dc:date>2022-12-01T09:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336026#M104517</link>
      <description>&lt;P&gt;@Davide Scolari​&amp;nbsp;, in the tDBInput_2 component schema settings, please reset the column oggi Date Pattern to 'yyyy-MM-dd' like the below, then re-try the job?&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDRLGAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147700i7DDDCEA1937AC04F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDRLGAA4.png" alt="0695b00000aDRLGAA4.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 09:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336026#M104517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T09:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336027#M104518</link>
      <description>&lt;P&gt;Thank you, but I had already tried but it doesn't work&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 10:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336027#M104518</guid>
      <dc:creator>DScolari1623331702</dc:creator>
      <dc:date>2022-12-01T10:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336028#M104519</link>
      <description>&lt;P&gt;@Davide Scolari​&amp;nbsp;, you can substring the oggi value, in the tREST body , try  the below &lt;/P&gt;&lt;P&gt;\"from\":\" "+globalMap.get("oggi").toString().substring(0, 10)+"\",&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 10:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336028#M104519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T10:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336029#M104520</link>
      <description>&lt;P&gt;Thank you, but you expect a Date the Trest . I discovered this by running the job in Trace Debug&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 10:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336029#M104520</guid>
      <dc:creator>DScolari1623331702</dc:creator>
      <dc:date>2022-12-01T10:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336030#M104521</link>
      <description>&lt;P&gt;A date passed via a web service will either be passed as a String or a number. A Date in Java is essentially a number that when it is shown to users as a String, can be formatted in a number of different ways. If the error is caused by not receiving "2022-11-02", then your date is arguably expecting a String. &lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 13:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336030#M104521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T13:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336031#M104522</link>
      <description>&lt;P&gt;Thank you very much, but I don't know what to do anymore.&lt;/P&gt;&lt;P&gt;I will bring back the job as per your suggestion&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDT0PAAW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137826i449FD067CB9C871A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDT0PAAW.png" alt="0695b00000aDT0PAAW.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the job in which I hand them the date manually&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDT1hAAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153354i287AF62323C8C13F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDT1hAAG.png" alt="0695b00000aDT1hAAG.png" /&gt;&lt;/span&gt;﻿&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000aDT21AAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153504i443A8E63934436CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000aDT21AAG.png" alt="0695b00000aDT21AAG.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:01:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336031#M104522</guid>
      <dc:creator>DScolari1623331702</dc:creator>
      <dc:date>2022-12-01T14:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336032#M104523</link>
      <description>&lt;P&gt;You appear to have a space between your globalMap containing the date and your opening double quote ("). You have...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\"from\":\" "+((String)globalMap.get("oggi"))+"\",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....and I think you need....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\"from\":\""+((String)globalMap.get("oggi"))+"\",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A tiny change, but it would end up producing your date like this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" 2020-11-01"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...instead of this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"2020-11-01"&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336032#M104523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T14:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336033#M104524</link>
      <description>&lt;P&gt;You are right, stupid mistake! I thank you, I was going crazy. It works perferctly&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:16:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336033#M104524</guid>
      <dc:creator>DScolari1623331702</dc:creator>
      <dc:date>2022-12-01T16:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Talend: How can I set global variable into tREST HTTP Body?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336034#M104525</link>
      <description>&lt;P&gt;It's easy to overlook an empty space. I've wasted days on stuff like this before &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 17:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-How-can-I-set-global-variable-into-tREST-HTTP-Body/m-p/2336034#M104525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T17:15:22Z</dc:date>
    </item>
  </channel>
</rss>

