There is already a method toField() that allows us to get one value of the chosen field. It would be useful to have another method returning the list of values of the chosen field from all sObjects that were retrieved using SOQL query. For example, by using this function we could get list of Strings created from 'Name' field values from 10 Account sObjects.
There is already a method toField() that allows us to get one value of the chosen field. It would be useful to have another method returning the list of values of the chosen field from all sObjects that were retrieved using SOQL query. For example, by using this function we could get list of Strings created from 'Name' field values from 10 Account sObjects.