Get Record Type Id by Developer Name – Smukov on Salesforce – Ideas and experiences of a Salesforce Developer

PHOTO EMBED

Sat Nov 23 2024 20:34:36 GMT+0000 (Coordinated Universal Time)

Saved by @redflashcode

Id recordTypeId =
  Schema.SObjectType.Account.getRecordTypeInfosByName()
    .get('Wholesale Partner').getRecordTypeId();
content_copyCOPY

https://smukov.github.io/blog/2018/06/09/Record-Type-Id-By-Developer-Name/