Skip to content

Instantly share code, notes, and snippets.

@gitmatheus
Last active May 31, 2017 14:42
Show Gist options
  • Save gitmatheus/edacc1c487ccbf02fc728e35bbad2059 to your computer and use it in GitHub Desktop.
Save gitmatheus/edacc1c487ccbf02fc728e35bbad2059 to your computer and use it in GitHub Desktop.
SObject[] sObjectCustomObject = new SObject[]{ new Custom_Object__c(Name = 'Custom Object Name') };
processCustomObject(sObjectCustomObject);
private void processCustomObject(SObject[] customObjects) {
for (Custom_Object__c obj : customObjects) System.debug(obj.Name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment