[SalesForce] more than one value selected in a picklist

I am trying to write a trigger or wf for a field to be updated if a Multi-select picklist has more than one value. Any suggestions on how to write if the multi-select has more than one value

Best Answer

As Keith C and HomerJ said you can write something like this. Hope this helps.

trigger UpdateOpportunity on Opportunity (before insert, before update){    
    for(Opportunity opp :Trigger.new){ 

        // MultiSelect Fields are a single String with values delimited by a semi-colon
        // DeliveryInstallationStatus__c is a Picklist (Multi-Select)
        String[] deliveryArray = opp.DeliveryInstallationStatus__c.split(';');
            // Write your logic here