Anyone know a better way to refactor this code so it won't be hardcoded PersonAccount? Instead, it should be parameter passed in? String personAccRecTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('PersonAccount').getRecordTypeId(); Thanks, Darko