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
roni shoreroni shore 

trigger on contentlinkdocument

how to write a on trigger ContentDocumentLink ,that fires when a ContentDocumentLink object is created and will check to see if the ContentDocumentLink object relates to an account or a contact. If so, it will set the "have_file__c" checkbox to true on the respective record.
Suraj TripathiSuraj Tripathi

Hi roni,

I think You have got answer from stack Exchange

Like:- https://salesforce.stackexchange.com/questions/197848/trigger-on-contentlinkdocument

Mark this and close this answer.

Regards,

Suraj