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
4 months agoparth9927
5 months, 3 weeks agostan_malta
12 months agoUdayudyvk1818
1 year, 3 months agoUllr
1 year, 7 months ago