Schema.SObjectType.Account.getRecordTypeInfosByName().get('直接客户').getRecordTypeId();
或
String recordTypeId = Schema.getGlobalDescribe().get('Account').getDescribe().getRecordTypeInfosByName().get('Person Account').getRecordTypeId();
Salesforce 使用Schema获取记录类型Id
最新推荐文章于 2024-01-20 14:24:09 发布
