Skip to content

Instantly share code, notes, and snippets.

@snugsfbay
Last active February 3, 2018 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snugsfbay/c48c399b8d5e32561e5fdc91a770eef5 to your computer and use it in GitHub Desktop.
Save snugsfbay/c48c399b8d5e32561e5fdc91a770eef5 to your computer and use it in GitHub Desktop.
Sample Account Data for use with Test.loadData()
Id Name Website Phone BillingStreet BillingCity BillingState BillingPostalCode BillingCountry
1 sForceTest1 http://www.sforcetest1.com (415) 901-7000 The Landmark @ One Market San Francisco CA 94105 US
2 sForceTest2 http://www.sforcetest2.com (415) 901-7000 The Landmark @ One Market Suite 300 San Francisco CA 94105 US
3 sForceTest3 http://www.sforcetest3.com (415) 901-7000 1 Market St San Francisco CA 94105 US
Id AccountId Salutation FirstName LastName
10 2 Mr. Tim Barr
11 3 Ms. Babara Levy
@snugsfbay
Copy link
Author

snugsfbay commented Feb 3, 2018

This is a sample CSV from Salesforce docs: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_load_data.htm
To use it with the AccountID field in Contact test data, just use the same integer value found in this file's ID field to relate any contact to that Account as in the sample Contact file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment