User Activity

Hi all, I have as a requirement to update the work notes every time a file is attached or deleted, I have researched and there are events such as attachment.read and attachment.deleted that can help me to solve it. If someone can help me to call them...
Helpfuls given to