0

これは私のコードです。Account名前、電話などのフィールドのデフォルト値を設定する必要があります...しかし、いくつかのエラーが表示されます。

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

これを解決するには?

4

1 に答える 1