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
Prabhat Singh 56Prabhat Singh 56 

Can you verify if FeedItem where Type='CreateRecordEvent' an invoke FeedItem triggers?

Hello,

I'm inserting an Attachment on a Case via apex (ParentId=case.Id), which results in a new FeedItem record created on the Case (standard functionality?) (Type='CreateRecordEvent', Visibility='AllUsers', ParentId=case.Id).
I want to update these new FeedItem with Visibility='InternalUsers' with a trigger.

I run into this page: https://developer.salesforce.com/page/Chatter_Code_Recipes
it says: "A final note. FeedItems of type 'UserStatus' and 'TrackedChange' don't invoke the triggers. In other words, if a user updates his/her own status in Chatter or if a tracked field changes value, those events won't fire any triggers.
can we assume that FeedItems of type 'CreateRecordEvent' also doesn't invoke the triggers?

Regards,
Prabhat
Nivrutti JoshiNivrutti Joshi
I have built a trigger on FeedItem where I want to delete the feed items of type 'CreateRecordEvent' . But the trigger is not getting fired. How can I make this work ?
Please help.
romi guptaromi gupta
A final note. FeedItems of type 'UserStatus' and 'TrackedChange' don't invoke the triggers. In other words, if a user updates his/her own status in Chatter or if a tracked field changes value, those events won't fire any triggers.  
https://www.uptunews.in/2019/03/upsee-college-predictor-2019-.html