LoginSignup
0
0

Apex: オブジェクトリスト型に新規レコードの作成とオブジェクト型に新規レコードの作成

Last updated at Posted at 2023-09-12

よく書く内容なので、メモとして残しましょう!
オブジェクト型に新規レコードの作成

apex
Account acc = new Account(name = '株式会社テスト');
insert acc;

オブジェクトリスト型に新規レコードの作成

apex
List<Account> accList = new List<Account>();
accList.add(new Account(name = '株式会社テスト'));
insert accList;
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0