Skip to content

Instantly share code, notes, and snippets.

@lfreeland
Created June 26, 2016 20:32
Show Gist options
  • Select an option

  • Save lfreeland/2ed6ad88e1d76a5a64826c45cbacd5c1 to your computer and use it in GitHub Desktop.

Select an option

Save lfreeland/2ed6ad88e1d76a5a64826c45cbacd5c1 to your computer and use it in GitHub Desktop.
// records populated
List<SObject> records = ...;
Set<Id> recordIds = new Set<Id>();
for (SObject record : records) {
recordIds.add(record.Id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment