Forcetalks | Bob Nunemaker | Activity https://www.forcetalks.com/bob-nunemaker/activity/ Activity feed for Bob Nunemaker. Fri, 23 Jan 2026 05:22:16 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 5a24f1ac47f1d46a1617a35ea0d71e0b Bob Nunemaker replied to the discussion How to get the Recordtype Id using Dynamic Apex in salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-get-the-recordtype-id-using-dynamic-apex-in-salesforce/#post-63623 Wed, 02 Oct 2019 21:50:43 +0530 Reply to How to get the Recordtype Id using Dynamic Apex in salesforce?

The globalDescribe solution is decent and works.  However, it is VERY slow and takes a lot of time at Enterprise size orgs.  Can really kill performance.  Instead, if you know what you want, you can use:

string recTypeID = Schema.SobjectType.Campaign.getRecordTypeInfosByName().get('Program').getRecordTypeId();

and this also means you could… Read more

]]>
0325a1efc3e03d73469c56b9499abad9 Bob Nunemaker became a registered member https://www.forcetalks.com/activity/p/96448/ Wed, 02 Oct 2019 21:45:56 +0530 0