Schema.SObjectType.Account.getRecordTypeInfosByName().get('直接客户').getRecordTypeId();
或
String recordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('Person Account').getRecordTypeId();
Salesforce 使用Schema获取记录类型Id
最新推荐文章于 2021-08-17 18:19:12 发布