<?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 get Token from Salesforce (by  tRESTClient) in order to use OAuth connection type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222798#M16256</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOTNAA4"&gt;@aszczepanska&lt;/A&gt;&amp;nbsp;, I am also trying to get access_token using the below link and encountered with '400 Bad Request' error.&lt;/P&gt;
&lt;P&gt;Can you please help me if you were able to resolve this error and get access_token from salesforce for oauth2 authentication.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 12:17:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-31T12:17:43Z</dc:date>
    <item>
      <title>How to get Token from Salesforce (by  tRESTClient) in order to use OAuth connection type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222795#M16253</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My task is to connect to Salesforce using OAuth connection Type (Basis connection type works fine).&lt;/P&gt;
&lt;P&gt;Talend version is v.6.4.&lt;/P&gt;
&lt;P&gt;From Salesforce I received: Client Id, Client Secret, Callback URL (host and port), but I assume I also need to have Token (in tSalesforceConnection component I need to give the path of Token File, please see attached tSalesforceConnection.png):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to obtain token by tRESTClient component, configured as on attached tRESTClient.png.&lt;/P&gt;
&lt;P&gt;I followed instruction from here:&amp;nbsp;&lt;A href="http://luan-itworld.blogspot.com/2016/03/access-salesforce-rest-api-from-talend.html&amp;nbsp;" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://luan-itworld.blogspot.com/2016/03/access-salesforce-rest-api-from-talend.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But&amp;nbsp;tRESTClient return error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exception in component tRESTClient_1 (test_OAuth2_sf)&lt;BR /&gt;javax.ws.rs.BadRequestException: HTTP 400 Bad Request&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I verified credentials from Salesforce, they work fine, the link:&lt;/P&gt;
&lt;P&gt;https://&lt;STRONG&gt;[...address..]&lt;/STRONG&gt;.my.salesforce.com/services/oauth2/authorize?response_type=code&amp;amp;redirect_uri=https%3A%2F%2F&lt;STRONG&gt;[...address..&lt;/STRONG&gt;&lt;SPAN&gt;].salesforce.com%3A433&amp;amp;&lt;/SPAN&gt;client_id=&lt;STRONG&gt;[Client Id received from Salesforce]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;works fine in the browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please tell what I doing wrong? How to get TOKEN from Salesforce?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Much obliged for the the answer.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222795#M16253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Token from Salesforce (by  tRESTClient) in order to use OAuth connection type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222796#M16254</link>
      <description>&lt;P&gt;I would like to add some clarifications to tRESTClient configuration attached previously:&lt;/P&gt; 
&lt;P&gt;I configured the following parameters:&lt;/P&gt; 
&lt;P&gt;"client_id" = "MyClientId"&lt;/P&gt; 
&lt;P&gt;"clients_secret" = "MyClientSecret"&lt;/P&gt; 
&lt;P&gt;"grant_type" = "password"&lt;/P&gt; 
&lt;P&gt;"username" = "myUser"&lt;/P&gt; 
&lt;P&gt;"password" = "myPasswordSecurityToken" -- here I put Password concatenated with SecurityToken, as it is advised here:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://developer.salesforce.com/forums/?id=906F00000009BZCIA2" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.salesforce.com/forums/?id=906F00000009BZCIA2&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I verified credentials, they are correct. But still I get the error:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Exception in component tRESTClient_1 (test_OAuth2_sf)&lt;BR /&gt;javax.ws.rs.BadRequestException: HTTP 400 Bad Request&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Unknown Source)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:507)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:902)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:863)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:426)&lt;BR /&gt;at org.apache.cxf.jaxrs.client.WebClient.post(WebClient.java:456)&lt;BR /&gt;at import_account_project.test_oauth2_sf_0_1.test_OAuth2_sf.tRESTClient_1Process(test_OAuth2_sf.java:826)&lt;BR /&gt;at import_account_project.test_oauth2_sf_0_1.test_OAuth2_sf.runJobInTOS(test_OAuth2_sf.java:1228)&lt;BR /&gt;at import_account_project.test_oauth2_sf_0_1.test_OAuth2_sf.main(test_OAuth2_sf.java:1077)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222796#M16254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-06T14:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Token from Salesforce (by  tRESTClient) in order to use OAuth connection type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222797#M16255</link>
      <description>Do you have a connected app in Salesforce ?</description>
      <pubDate>Fri, 22 Mar 2019 10:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222797#M16255</guid>
      <dc:creator>vatsal_ras</dc:creator>
      <dc:date>2019-03-22T10:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Token from Salesforce (by  tRESTClient) in order to use OAuth connection type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222798#M16256</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOTNAA4"&gt;@aszczepanska&lt;/A&gt;&amp;nbsp;, I am also trying to get access_token using the below link and encountered with '400 Bad Request' error.&lt;/P&gt;
&lt;P&gt;Can you please help me if you were able to resolve this error and get access_token from salesforce for oauth2 authentication.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 12:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-Token-from-Salesforce-by-tRESTClient-in-order-to-use/m-p/2222798#M16256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-31T12:17:43Z</dc:date>
    </item>
  </channel>
</rss>

