ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 239 - Certified Platform Developer II discussion

Report
Export

A developer wants to write a generic Apex method that will compare the Salesforce Name filed between any two object records, for example to compare the Name field of an Account and an Opportunity; or the name of an Account and a Contact.

How should the developer do this?

A.
Use a String.replace( ) method to parse the contents of each Name field.
Answers
A.
Use a String.replace( ) method to parse the contents of each Name field.
B.
Invoke a Schema,describe() function to compare the values of each Name field.
Answers
B.
Invoke a Schema,describe() function to compare the values of each Name field.
C.
Cast each object into an sObject and use sObject.get(Name') to compare the Name fields.
Answers
C.
Cast each object into an sObject and use sObject.get(Name') to compare the Name fields.
D.
Use the salesforce metadata API to extract the value of each object and compare the name fields
Answers
D.
Use the salesforce metadata API to extract the value of each object and compare the name fields
Suggested answer: C

Explanation:

Topic 2, Exam Pool B

asked 23/09/2024
Rutger Pels
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first