Interview Question

Interview Austin, TX

Given a case and asked to write a bulk trigger optimizing

  the code using data structure in Apex
Answer

Interview Answer

1 Answer

0

list<Account> dataStructureForBulkification = new list<Account>(); for(Account acc : trigger.new) { acc.Description = 'Default Value'; dataStructureForBulkification.add(acc); } update dataStructureForBulkification;

Joe on Sep 29, 2014

Add Answers or Comments

To comment on this, Sign In or Sign Up.