0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

APEXの忘備録

0
Posted at

APEXって忘れちゃうよね

ググればいいのかもしれないけど、つい忘れちゃうこと
忘備録なので内容は保証できないっす。

レコードタイプを楽にとる

schema使うのがトレンドってやつだぜ。
schema.SObjectType.オブジェクト名(Accountとか).getRecordTypeInfosByDeveloperName().get(レコードタイプの開発名).getRecordTypeId()
むかしはNameでしか取れなかったのにいい時代になった。
でもschema使うからループとかで回すと速度が酷いことになるかも。。。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?