Salesforce 中获取数据表字段的 picklist 的值
cmStatus = new List<String>(); Map<String, Schema.DescribeFieldResult> fs = Configero_Funcs.getFieldDescribes('CampaignMember'); Schema.DescribeFieldResult fd = fs.get('Status'); for (Schema.PicklistEntry pval : fd.getPicklistValues()) { cmStatus.add(pval.getValue()); }