Using salesforce Apex in Talend (merge API calls from within TOS)

Highlighted
One Star

Using salesforce Apex in Talend (merge API calls from within TOS)

Hi guys!
I have used the SFDC connections thus far with a lot of success. Namely...
tSalesforceInput -> tMap -> tSalesforceOutput
This was useful and enough for most migrations thus far, but now I need to do something more complex. Something similar to...
tSalesforceInput -> tMap -> tJava -> tSalesforceOutput
I need to get all the records via tSalesForceInput, then in a tJava component iterate and manipulate these records.
This manipulation requires APEX calls ">http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm] apex documentation. Considering how tSalesforceInput and tSalesforceOutput works, apex must be bundled in with the implementation in Talend. The only question is how do I acess the API in the tJava component? And what type of object is the result set from the tSalesForceInput component.

Cheers!!
One Star

Re: Using salesforce Apex in Talend (merge API calls from within TOS)

Hi H3llion,
For tSalesforceInput there are two implements (Query and Bulk Query).They are different implement to get the data,so the type of object in the result set is different.
For Query implement: The type of object in the result set is like this : java.util.List<org.talend.salesforce.TopRecord> allTopRecords = tSalesforceInput.getAllTopRecords();
and for bulk Query:The type of object in the result set is like this : java.util.List<java.util.Map<String, String>> resultListMessage_tSalesforceInput = sforceBulk_tSalesforceInput.getQueryResult(queryResultId_tSalesforceInput);
You can get more detail information in the talend studio code generate part.

Geek

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now