You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2014-03-13 16:43:58

RobinW
Member
2 posts

RobinW said:

Salesforce Integration - Query Condition based on other Input

Hi all,

Just starting to learn the wonderfull feaures of Talend! But I have a question regarding related entities.
Take for instance Accounts and Contacts on Salesforce.

An Account and Contact have a Master-Detail relationship where the Account is the Master. So when I extract Account records from one org to another org with a LIMIT 1000 records for example, I need to query the Contacts related to those 1000 Accounts records.

So the 1000 random Accounts that get queried, extracted and pushed to my destination org, have +1000 related contacts. How can I make sure that the Contacts that will be extracted, are all related to those 1000 random Accounts extracted earlier?

Kind Regards,
Robin

Offline

#2 2014-03-13 16:48:54

esabot
Talend Team


esabot said:

Re: Salesforce Integration - Query Condition based on other Input

If you don't mind I'll  move your topic to the most relevant forum for MDM users, so that you get more visibility with MDM Subject Matter Experts.


Follow Talend on Twitter, Linkedin and Facebook.

Offline

#3 2014-03-14 08:28:15

RobinW
Member
2 posts

RobinW said:

Re: Salesforce Integration - Query Condition based on other Input

All right, thanks!

Any feedback from anyone?

Offline

#4 2014-03-14 10:12:29

shong
Talend Team


shong said:

Re: Salesforce Integration - Query Condition based on other Input

Hi Robinw

You need to iterate each Account record with tFlowToIterate component and extract all the related Contract records, please see my screenshots. On tSalesForceInput_2, query Contract records based on the return result by tSalesForceInput_1, set the Query condition as:

"AccountId='"+(String)globalMap.get("row1.Id")+"'"

Let me know if it works.

Shong
mini_129847_1.pngmini_129847_2.png


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the global leader of open source data management and application integration solutions!

Offline

#5 2016-10-12 15:37:07

lacarnelconsulting
Member
1 post

lacarnelconsulting said:

Re: Salesforce Integration - Query Condition based on other Input

Hi,

unfortunately the iterate connexion on a tSalesforceInput seems to be no longer available with Talend 6.2.1 :-(
i.e It is impossible to connect the tFlowIterate with the tSalesforceInput using row > Iterate.

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy