這是我的代碼。我必須設置Account
字段的默認值,如名稱,電話等......但它顯示一些錯誤。賬戶對象中的SetDefaultAccountValues它顯示總和錯誤
trigger setDefaultAccountValues on Account (before insert, before update){
for (Account acc : trigger.new){
acc.Name ='xxx';
}
}
的錯誤是:
Error: Compile Error: Variable is not visible: name at line 5 column 9
如何解決這個問題?
這是什麼編程語言?頂尖? – 2013-05-02 08:23:06
你是Apex編程語言。 – user2232083 2013-05-02 08:31:08
「Account」類中'Name'成員的訪問修飾符是什麼? – 2013-05-02 08:51:41