[SalesForce] how to switch off chatter feed tracking for a single contact record

how to switch off chatter feed tracking for a single contact record?

I need to change some info in a contact record and it shouldn't show anywhere in chatter that I have updated that value. It might even be an account name.

Is this possible? can someone help here?

Best Answer

As the comments have said - you'd have to disable and then reenable chatter for whole object or modify the field tracking. You can do it outside business hours if it's some kind of data fix.

(let's ignore for a while the fact that the whole purpose of audit fields is to track history and you might get in trouble during audit even if it's a valid data fix ;))

You can also run the data fix, then find the Chatter entries created by you & delete them. At least it worked for me when I had to delete one user's entry created from field history tracking, you might be best trying it out first in a sandbox.

SELECT Id, Name,  
(SELECT Id, Ttile, Body 
    FROM Feeds
    WHERE Type = 'TrackedChange' AND CreatedById = :UserInfo.getUserId() 
        AND CreatedDate = TODAY
)
FROM My_Object__c

Loop through the results, build List of Ids for FeedItems you want to delete and fire!

Related Topic