Q: 17
Consider the following code snippet:
public static List obtainAllFields(Set leadIds) {
List result = new List();
for (Id leadId : leadIds) {
result.add([SELECT FIELDS(ALL) FROM Lead WHERE Id = :leadId]);
}
return result;
}
Given the multi-tenant architecture of the Salesforce platform, what is a best practice a developer
should implement to ensure successful execution of the method?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.