Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
Option D is given wrong.
It was-
Id recType_New = Schema.SObjectType.Opportunity.getRecordTypeInfosByDeveloperName().get('New').getRecordType.Id();
Id recType_Renewal = Schema.SObjectType.Opportunity.getRecordTypeInfosByDeveloperName().get('Renewal').getRecordType.Id();
In that case C is right
answer should be D.
to simply use getRecordTypeInfosByDeveloperName
https://salesforce.stackexchange.com/questions/11968/what-would-be-the-best-approach-to-get-the-recordtype-id
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
dasabhisek404
1 day, 22 hours agoparth9927
1 month, 2 weeks agostan_malta
7 months, 4 weeks agoUdayudyvk1818
11 months, 1 week agoUllr
1 year, 3 months ago