function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shivom Verma 34Shivom Verma 34 

->Whenever the notes are added/updated/deleted then same should be posted on the case chatter feed

ANUTEJANUTEJ (Salesforce Developers) 
Hi Shivom

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.