Which two options allows the developer to dynamically determine the - ProProfs Discuss
Topics
Products
Follow Us:

Which two options allows 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.



A. Hardcode the ID as a constant in an Apex class
B. Execute a SOQL query on the RecordType Object
C. Use the getRecordTypeInfosByName()method in the DescribeSObjectResult Class.
D. Make an outbound web service call to the SOAP API.

This question is part of Platform Dev I
Asked by Csouza, Last updated: Aug 11, 2020

+ Answer
Request

1 Answer

csouza

Csouza

Answered Jul 27, 2018

Execute a SOQL query on the RecordType Object
Use the getRecordTypeInfosByName()method in the DescribeSObjectResult Class.
1
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.