Friday, March 22, 2013

Describe a table on the Salesforce.com platform


Set fieldSet = Contact.SObjectType.getDescribe().fields.getMap().keyset();
List fieldList = new List();
fieldList.addAll(fieldSet);
fieldList.sort();
System.debug(String.join(fieldList, ','));

No comments:

Post a Comment