<?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: After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255448#M38149</link>
    <description>&lt;P&gt;Thanks Shong.&lt;/P&gt; 
&lt;P&gt;I think it was specifically the escapes in the body that made the difference (as I had tried it with context.bearer_token as parameter as well, when I first set it up).&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2020 23:01:51 GMT</pubDate>
    <dc:creator>SWYP</dc:creator>
    <dc:date>2020-03-23T23:01:51Z</dc:date>
    <item>
      <title>After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255441#M38142</link>
      <description>&lt;P&gt;New to Talend, have gone through a few training videos and labs at Talend Academy, but struggling with building an integration which requires REST API calls.&lt;/P&gt;
&lt;P&gt;I have successfully created the login call using tRestClient, and it returns something like this when hooking up with a tLogRow:&lt;/P&gt;
&lt;P&gt;Starting job startZRsessionOAuth at 08:10 19/03/2020.&lt;BR /&gt;[statistics] connecting to socket on port 3827&lt;BR /&gt;[statistics] connected&lt;BR /&gt;200||{"access_token":"798c13cc31d3473d895c02e1812b5g7a","token_type":"bearer","expires_in":3598,"scope":"entity.19e643f4-a3ac-750b-b061-0025904c59d6 platform.write service.usage.delete service.usage.update service.usage.write tenant.12345 user.2c92a0f970e7e3390170ebfa5d4a2d6b","jti":"792c13cf31d3473d995c09e1312b5f7d"}&lt;BR /&gt;[statistics] disconnected&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is the "what's next"?&lt;/P&gt;
&lt;P&gt;Tried isolating the access token under the assumption it is required for further REST calls, but failing miserably.&lt;/P&gt;
&lt;P&gt;Tried tExtractXMLfield, tExtractJSONfields, even tSetGlobalVar, they would compile, sometimes even process a row, but the tLogRow I tied at the end of those never showed any output.&lt;/P&gt;
&lt;P&gt;Also tried just putting a new REST call in, with a query I know that works. Simple setup with URL "&lt;A href="https://rest.zuora.com/v1/action/query" target="_blank" rel="nofollow noopener noreferrer"&gt;https://rest.zuora.com/v1/action/query&lt;/A&gt;" and body "{&lt;BR /&gt;"queryString": "select AccountId from PaymentMethod where AccountId='2c72a0f951095f3d01512329fb5f59a2'"&lt;BR /&gt;}"&lt;/P&gt;
&lt;P&gt;That doesn't even compile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what I am after are some pointers, or indications around which Talend video or training to view to get educated, or a specific piece of documentation that explains this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255441#M38142</guid>
      <dc:creator>SWYP</dc:creator>
      <dc:date>2024-11-16T02:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255442#M38143</link>
      <description>&lt;P&gt;Managed to get the access token isolated by using a tMap and tExtractJSONFields, so left with the question around how to then use the access token to run queries against Zuora (if indeed explicitly required).&lt;BR /&gt;There is unfortunately preciously little information I've found on how to use Talend for this... any help would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 23:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255442#M38143</guid>
      <dc:creator>SWYP</dc:creator>
      <dc:date>2020-03-22T23:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255443#M38144</link>
      <description>&lt;P&gt;thought I could assign the access token to a context variable using tJavaRow, but for some reason it doesn't work&lt;/P&gt;&lt;P&gt;After ensuring the schema of tExtractJSONFields had the proper output attribute (just called "access_token") going into the tJavaRow component, I coded it thus:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;globalMap.put("access_token",input_row.access_token);&lt;/PRE&gt;&lt;P&gt;However, the context variable remains empty.&lt;/P&gt;&lt;P&gt;If I give that context variable an initial value, it retains its initial value... sigh...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts/ideas anyone?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 02:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255443#M38144</guid>
      <dc:creator>SWYP</dc:creator>
      <dc:date>2020-03-23T02:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255444#M38145</link>
      <description>If you want to assign the value to context variable, the code is:
&lt;BR /&gt;context.varName=input_row.access_token;
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 23 Mar 2020 03:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255444#M38145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T03:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255445#M38146</link>
      <description>&lt;P&gt;Thanks Shong, a colleague pointed that out as well... it works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I need to find some useful (read: insightful) documentation on how to use Talend components to use the REST API to issue simple queries like "select id from Payment where 'invoiceID=somevalue'", and run functions like "credit balance adjustment" (via&lt;/P&gt;
&lt;DIV&gt;
 &lt;DIV class="sc-ksYbfQ hwVgiP"&gt;
  &lt;SPAN&gt;&lt;A href="https://rest.zuora.com" target="_blank" rel="nofollow noopener noreferrer"&gt;https://rest.zuora.com&lt;/A&gt;&lt;/SPAN&gt;/v1/object/credit-balance-adjustment) using that access token.
 &lt;/DIV&gt;
 &lt;DIV class="sc-ksYbfQ hwVgiP"&gt;
  Any suggestions?
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Mar 2020 03:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255445#M38146</guid>
      <dc:creator>SWYP</dc:creator>
      <dc:date>2020-03-23T03:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255446#M38147</link>
      <description>&lt;P&gt;Hey Shong, I just read your answer to another community post:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCoPXCA0" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/resolved-How-to-pass-tJava-output-as-header-data-to-tRest-client/td-p/94370&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am after the exact same thing, but for some reason the solution you provided doesn't work.&lt;/P&gt; 
&lt;P&gt;Will upload a few pictures:&lt;/P&gt; 
&lt;P&gt;1) how it works in Postman&lt;/P&gt; 
&lt;P&gt;2) how the 'base job' works in TOS, without the REST call&lt;/P&gt; 
&lt;P&gt;3) how that 'base job' fails as soon as I add the REST call using a context variable in its header&lt;/P&gt; 
&lt;P&gt;Here's the URL I call with tREST:&lt;/P&gt; 
&lt;P&gt;"&lt;A href="https://rest.apisandbox.zuora.com/v1/action/query/&amp;quot;+(String)globalMap.get(&amp;quot;bearer_token" target="_blank" rel="nofollow noopener noreferrer"&gt;https://rest.apisandbox.zuora.com/v1/action/query/"+(String)globalMap.get("bearer_token&lt;/A&gt;")&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any advice on what I am missing or misunderstanding?&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly9S"&gt;call_in_PostMan.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly9c"&gt;job_failing_with_RESTcall.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ly9Y"&gt;job_without_RESTcall.png&lt;/A&gt;</description>
      <pubDate>Mon, 23 Mar 2020 06:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255446#M38147</guid>
      <dc:creator>SWYP</dc:creator>
      <dc:date>2020-03-23T06:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255447#M38148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Use a tRest component to call API, the URL is:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A href="https://rest.apisandbox.zuora.com/v1/action/query/%22+(String)globalMap.get(%22bearer_token" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;https://rest.apisandbox.zuora.com/v1/action/query/"&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;define the Authorization key/value in the Http headers list,&lt;/P&gt; 
&lt;P&gt;name&amp;nbsp; &amp;nbsp;value&lt;/P&gt; 
&lt;P&gt;"Authorization"&amp;nbsp; &amp;nbsp; context.bearer_token&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and pass Http body as below：&lt;/P&gt; 
&lt;P&gt;"{ &lt;BR /&gt;\"query_string\" : \"select paymentNumber from ...bababa....\", &lt;/P&gt; 
&lt;P&gt;} "&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 06:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255447#M38148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T06:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: After logging into Zuora using RestClient, do I need the Access Token for further Zuora interactions?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255448#M38149</link>
      <description>&lt;P&gt;Thanks Shong.&lt;/P&gt; 
&lt;P&gt;I think it was specifically the escapes in the body that made the difference (as I had tried it with context.bearer_token as parameter as well, when I first set it up).&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 23:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/After-logging-into-Zuora-using-RestClient-do-I-need-the-Access/m-p/2255448#M38149</guid>
      <dc:creator>SWYP</dc:creator>
      <dc:date>2020-03-23T23:01:51Z</dc:date>
    </item>
  </channel>
</rss>

