List<Schema.PicklistEntry> picklistEntries =fieldResult.getPicklistValues(); Map<String,String> fieldValue2LabelMap =newMap<String,String>();for(Schema.PicklistEntry picklistEntry : picklistEntries) {if(picklistEntry.isActive()) { fieldValue2LabelMap.put(picklistEntry.getValue(),picklistEntry...
1publicclassPickListValuesUtil {2/*3通过sObjectName和指定字段获取PickList的value值4*/5publicstaticMap<String, object>getPicklistValues(String sObjectName, String sFieldName){6Map<String, object> picValues=newMap<String, object>();7Map<String, Schema.SObjectType> sObjectDescribeMap =Schema.get...
1publicclassPickListValuesUtil{2/* 3 通过sObjectName和指定字段获取PickList的value值 4 */5publicstaticMap<String,object>getPicklistValues(String sObjectName,String sFieldName){6Map<String,object>picValues=newMap<String,object>();7Map<String,Schema.SObjectType>sObjectDescribeMap=Schema.getGlobalDe...
for(Schema.PicklistEntry str : fildResult.getPicklistValues()){ // picklist value String industry = Str.getValue(); } 注:会显示出此picklist类型的字段下面的所有的值。如果是有Field Dependencies关系的,会把不在此Controlling Feild下的Dependent Field也显示出来。
Common_PicklistController { 2 3 @AuraEnabled(cacheable=true) 4 public static List<Map<String,String>> getPicklistValues(String objectName, String fieldName,String recordTypeDeveloperName) { 5 //1. use object and field name get DescribeFieldResult and also get all the picklist values ...
SF :Salesforce中,查询picklist的value的值,Schema.DescribeFieldResult fildResult = Opportunity.Current_Activity__c.getDescribe();for(Schema.PicklistEntry str : fildResult.getPicklistValues()){ &nb
参数值(Picklist Values) 下拉列表中显示的特定字段的选择。有些值是预定义的,其他值可以由管理员更改或定义。(Selections displayed in drop-down lists for particular fields. Some values come predefined, and other values can be changed or defined by an administrator.) 固定列表(Pinned Lists) 显示在服务...
, get , post , patch fields field name details customvalue type customvalue[] properties filter, group, sort description a list of the global picklist values. description type string properties filter, nillable, sort description a picklist value’s description. it’s useful to include a ...
While in some aspects multi-select picklist fields are very similar to picklists, the intricacies you could get yourself into are quite different, but more about that later on. After making a multi-select picklist field available, the users will be able to choose one or more values from ...
Custom fields of type "Picklist (Multi-Select)" are not supported by Create record and Update record (V3) actions (including their respective deprecated versions). Creating a new connection using Salesforce "Custom Domain" sign in is not supported. Using nullable fields in Order By parameter sh...