function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
this is handler when we insert a note on the contact
it will update the case field product (picklist)
trigger TriggerNote on Note (after insert) {
HandlerTriggernote handler = new HandlerTriggernote();
handler.Insertnote(trigger.new);
}
here is the handler code for update
please change product__c according to your need.
public class HandlerTriggernote {
public void Insertnote(list<note>listnote){
list<case> listcase = new list<case>();
listcase = [SELECT id,Product__c FROM case ];
for(case c:listcase)
{
c.Product__c = 'GC3040';
}
update listcase;
}
}
Have you tried the above solution mentioned in another question you have posted regarding the same issue?
>> https://developer.salesforce.com/forums/ForumsMain?id=9062I000000IZNi
Going forward please refrain from spamming the forum with the same request over and over.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.