Skip to main content
kishore koni が「#Data Management」で質問
what is the meaning of this

 

-----for(Account acc: acc_list)-------

 

can you explain  in detail  please ...
2 件の回答
  1. 2014年6月5日 13:48
    This is a standard For loop in Salesforce syntax.

     

    for(Account acc: acc_list) {

    //Do Something

    }

     

    The way to read this is

     

    For every Account, in the Account List, perform the actions within the brackets.  If there are 3 accounts in acc_list, then the code will be run 3 times, once per account.  
0/9000