Câu 105: Salesforce Certified Platform Developer I
A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?
Nội dung câu hỏi
A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Use the first three characters of the sObject ID to determine the sObject type.
- B. Use the getSObjectType method on each generic sObject to retrieve the sObject token. — đáp án hiện tại
- C. Use the getSObjectName method on the sObject class to get the sObject name.
- D. Use a try-catch construct to cast the sObject into one of the three sObject types.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.