avatar
Untitled

Guest 387 29th Mar, 2019

                                           
                         Public class Opportunity_Servis
{
	  Public static void UpdOpps(list <Opportunity> opps, string indication_grup)
	  {
		 list<Opportuniy > labortaory_opps =new list<Opportunity >();
		for(Opportuniy o :opps)
		   if(o.Primary_Indication__c=='Laboratory' && o.Indication_Group__c!=indication_grup)
			{
			  o.Indication_Group__c = indication_grup;
			  labortaory_opps.add(o);
			}
		Update labortaory_opps;
	}
}
                      
                                       
To share this paste please copy this url and send to your friends
RAW Paste Data