diff --git a/Hello.cls b/Hello.cls index dfda7d3..4f18069 100644 --- a/Hello.cls +++ b/Hello.cls @@ -2,8 +2,15 @@ public class hello { public hello() { for(Integer i = 0; i < 5; i++) { - Account a = [SELECT Id,Name FROM Account WHERE Name='Barclays'][0]; + Account a = [SELECT Id,Name,Phone FROM Account WHERE Name='Barclays'][0]; + a.Phone = 'NA'; + try { + insert a; + } catch (DmlException e) { + System.debug(e); + } } + } }