Which two options allow the developer to dynamically determine the ID of the required Record Type by its name?

A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.

Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
A . Make an outbound web services call to the SOAP AP
C . Hardcode the ID as a constant in an Apex class.
D . Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.
E . Execute a SOQL query on the RecordType object.

Answer: C,D

Latest CRT-450 Practice Questions with 372 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments