Salesforce Exam Questions

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

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 API.
B. Hardcode the ID as a constant in an Apex class.

C. Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.

D. Execute a SOQL query on the RecordType object.