Skip to content

Instantly share code, notes, and snippets.

@mguemmar
Created February 15, 2021 16:57
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 mguemmar/fabc4c41059d825ec5e498b0b811e953 to your computer and use it in GitHub Desktop.
Save mguemmar/fabc4c41059d825ec5e498b0b811e953 to your computer and use it in GitHub Desktop.
/* Create object B */
ObjetBEntity objB = new ObjetBEntity();
objB.setName("My First Object B record");
/* set column objectaid__r__external_id__c */
objB.setObjectAExternalId(objA.getExternalId()) ;
objetBRepository.save(objB);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment