Câu 8: Salesforce Certified Platform Developer I
A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)
Nội dung câu hỏi
A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)
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 myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.
- B. Use mySObject.myObject.fields.getMap() to return a map of fields.
- C. Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields. — đáp án hiện tại
- D. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields. — đáp án hiện tại
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.