Upload
doug-ayers
View
516
Download
1
Embed Size (px)
Citation preview
The Power of Upsert and External IDsHow To: Apex Code
#MWD16
#MWD16
Assume we have these accounts with external ids populated…
#MWD16
Open the Developer Console
#MWD16
Open Execute Anonymous Window
#MWD16
Insert a contact but rather than specify account’s id instead reference the account’s external id. Note use of the relationship field name, “account”, instead of the id field name, “accountId”.
#MWD16
Contact created and linked to account,all without knowing Salesforce record IDs!