Which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object?
A developer needs to display all of the available fields for an object.
Use getGlobalDescribe()get(myObject).getDescribe().fields.getmap () to return a map of fields Use schema.describeSObjects(new String[] {myObject}[0].fields.getMap() to return a map of fields