Salesforce has an undocumented function called PICKLISTCOUNT. This function returns the number of selected values in a multi-select picklist. This function is helpful in validation rules.
Use case: Salesforce users with ABC profile can select only one value in a multi-select picklist field.
Validation Rule: PICKLISTCOUNT( MultiSelect_Picklist__c ) > 1 and $Profile.Name is ABC
No comments:
Post a Comment