function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alexandra StehmanAlexandra Stehman 

Whast is the best to load relational data into Salesforce?

I have a background in custom application development and data model design.  I'm used to loading data with sql scripts or other programmatic means.

I'm not sure how best to load data into Salesforce.  I have a brand new instance with data where we have a many-to-many relationship between a custom object and Accounts.  I have to load in the Account data, and for each Account record, there are at least three entries in the custom object.  From what I have seen, my only options are to load the Account records, and then get those Account IDs, and manually copy each record ID into a spreadsheet (at least 3 times) in order to relate those Account records to each of the custom objects.  Then, load the entries for the custom objects, and get those IDs.  Last, a very painful manual step of mapping the ID's of the appropriate custom objects to the IDs of the Account objects in the spreadsheet.

Example:
Account ID 123
Associated Custom Objects IDs 111, 222, 333

Account ID 456
Associated Custom Objects IDs 333,444,555,666

Account ID 789
Associated Custom Objects IDs 111,222,333,444,555,666,777,888,999

What is the best way to do this?  Is there some 'database interface' that allows SQL-like script execution?

Links to tutorials, PDFs, etc appreciated!
Best Answer chosen by Alexandra Stehman
Wizno @ ConfigeroWizno @ Configero
There are many tools available to help you with loading data. At the end of the day, you'll have to decide which one you like working with the best. 

Some of them will allow you to relate your child object records to the parent object based on some criteria they have in common. Within salesforce you can also specify a custom field as an "External ID" which helps with loading in the child records. 

So using your example: 
Account ID 123
Associated Custom Objects IDs 111, 222, 333

As long as 111, 222, and 333 have a field that relates to Account_ID => 123, then you'll be able to accomplish this easily through the interfaces of the data loaders provided below. 

Salesforce Data Loader
https://developer.salesforce.com/page/Data_Loader

Configero Data Loader (Native Salesforce Application)
https://appexchange.salesforce.com/listingDetail?listingId=a0N30000009wRkqEAE

Informatica Data Loader (3rd party download, will let you connect directly to MySQL/SQL/Oracle DB)
http://www.informaticacloud.com/products/cloud-data-integration/data-loader-service.html

JitterBit Data Loader (3rd party download, will let you connect directly to MySQL/SQL/Oracle DB)
http://www.jitterbit.com/solutions/salesforce-integration/salesforce-data-loader/

All Answers

Wizno @ ConfigeroWizno @ Configero
There are many tools available to help you with loading data. At the end of the day, you'll have to decide which one you like working with the best. 

Some of them will allow you to relate your child object records to the parent object based on some criteria they have in common. Within salesforce you can also specify a custom field as an "External ID" which helps with loading in the child records. 

So using your example: 
Account ID 123
Associated Custom Objects IDs 111, 222, 333

As long as 111, 222, and 333 have a field that relates to Account_ID => 123, then you'll be able to accomplish this easily through the interfaces of the data loaders provided below. 

Salesforce Data Loader
https://developer.salesforce.com/page/Data_Loader

Configero Data Loader (Native Salesforce Application)
https://appexchange.salesforce.com/listingDetail?listingId=a0N30000009wRkqEAE

Informatica Data Loader (3rd party download, will let you connect directly to MySQL/SQL/Oracle DB)
http://www.informaticacloud.com/products/cloud-data-integration/data-loader-service.html

JitterBit Data Loader (3rd party download, will let you connect directly to MySQL/SQL/Oracle DB)
http://www.jitterbit.com/solutions/salesforce-integration/salesforce-data-loader/
This was selected as the best answer
Alexandra StehmanAlexandra Stehman
Thanks a ton! That information is really helpful.  I'm so lost in a world without sql. :)