A developer needs to display all the available field for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents name of the object.
Choose 2 answers a. Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields b. Use SObjectType.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 d. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields
The correct answers are lettered A and C.
Thank You,
www.nubeselite.com
Development | Training | Consulting
Please mark this as solution if your problem is solved.
All Answers
Yur questions are not visible. Please make it visible clearly.
A developer needs to display all the available field for an object.
In which two ways can the developer retrieve the available fields if the variable myObject represents name of the object.
Choose 2 answers
a. Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields
b. Use SObjectType.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
d. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields
The correct answers are lettered A and C.
Thank You,
www.nubeselite.com
Development | Training | Consulting
Please mark this as solution if your problem is solved.