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
abruckabruck 

How to send an email every time a file is uploaded

I need to send a notification to some of my users every time a file is uploaded. 
I understand that files does not have the option to create workflows. 
So I need to create an apex trigger to do this. 
I have never written anything like this before and I would appreciate some quidance. 
All the best, 
Aidel Bruck
@anilbathula@@anilbathula@
Hi abruck,

Check this link similar to your scenario and with the trigger,you need to modify it according to your requirment.
https://developer.salesforce.com/forums?id=906F00000008yRVIAY

Thanks
Anil.B
Sujeet PatelSujeet Patel
Hii abruck
You can do this with the help of trigger.
You have to write a trigger on attachment object.
i am sending you one link which is already send by anilbathula
https://developer.salesforce.com/forums?id=906F00000008yRVIAY