--
You received this message because you are subscribed to the Google Groups "salesforce professionals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salesforce-profess...@googlegroups.com.
To post to this group, send email to salesforce-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/salesforce-professionals?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Now check it and let me know.Hi Srinivas,You should incorporate IsPickVal function for Picklist fields.
if (IsPickval(Queue,'APAC') && IsPickVal(Status ,'Kickback') && Ischanged(Status), status_counter +1, status_counter)
--
himanshu
Check it..definitely work.Trigger CodeThen write few code in Trigger.Yes,I also checked. We can not use that function in formula field, but we can use in workflow or validation rule.
============
Trigger evaluationCounter on Employee__c (before Update){
Employee__c[] oldList = Trigger.Old;
Employee__c[] newList = Trigger.New;
for(integer i = 0; i < newList.size() ; i++){
if(newList[i].Queue == 'APAC' && newList[i].Status == 'Kickback' && newList[i].Status <> oldList[i].Status)
newList[i].status_counter = (newList[i].status_counter == null) ? 1 : newList[i].status_counter + 1;
}
}
--
himanshu