<?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 ESB: cREST component: dynamic endpoint in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-cREST-component-dynamic-endpoint/m-p/2351165#M117876</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am on Talend enterprise edition. I am using a cREST client.&amp;nbsp; I want to use a header value and&amp;nbsp;a context variable to calculate the endpoint url. i.e In the endpoint textbox I want use something like this&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"${header.instance_url}" + context.sfdc_sales_order_endpoint+"/"&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can someone provide an example on how I could achieve this?&lt;/P&gt; 
&lt;P&gt;So far I am able to use context variables, but not headers. I tried simple expression but it isn't getting resolved.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sowjanya&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sowjanya.&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 08:59:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T08:59:51Z</dc:date>
    <item>
      <title>Talend ESB: cREST component: dynamic endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-cREST-component-dynamic-endpoint/m-p/2351165#M117876</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am on Talend enterprise edition. I am using a cREST client.&amp;nbsp; I want to use a header value and&amp;nbsp;a context variable to calculate the endpoint url. i.e In the endpoint textbox I want use something like this&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"${header.instance_url}" + context.sfdc_sales_order_endpoint+"/"&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can someone provide an example on how I could achieve this?&lt;/P&gt; 
&lt;P&gt;So far I am able to use context variables, but not headers. I tried simple expression but it isn't getting resolved.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sowjanya&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sowjanya.&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 08:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-cREST-component-dynamic-endpoint/m-p/2351165#M117876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ESB: cREST component: dynamic endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-cREST-component-dynamic-endpoint/m-p/2351166#M117877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;1-A solution could be adding a cProcess before your cRest component:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr7i.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151820iB49CD049B99C374D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr7i.png" alt="0683p000009Lr7i.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;This address will override the one of your component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Or you can add a cSetHeader before your cRest component (You will have to add a cConfig with this import instruction "import org.apache.camel.Exchange;"):&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lrsa.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131280i423C2166AADA2E88/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lrsa.png" alt="0683p000009Lrsa.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;2-Another solution could be using a dynamic computed Endpoint (With DSL toD instruction. See &lt;A href="http://camel.apache.org/message-endpoint.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/message-endpoint.html&lt;/A&gt;). You can have a look at this post:&lt;BR /&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqYeCAK" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Talend-ESB-cREST-component-dynamic-endpoint/td-p/44145&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 07:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-cREST-component-dynamic-endpoint/m-p/2351166#M117877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T07:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Talend ESB: cREST component: dynamic endpoint</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-cREST-component-dynamic-endpoint/m-p/2351167#M117878</link>
      <description>&lt;P&gt;worked.&amp;nbsp;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 15:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-ESB-cREST-component-dynamic-endpoint/m-p/2351167#M117878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T15:42:30Z</dc:date>
    </item>
  </channel>
</rss>

