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
Saurabh SmartySaurabh Smarty 

Hello All, I have a scenario where in I need to send a mail alert once an attachment of a specific name is uploaded, I am inclined to write a trigger for this but can I use workflow as well? can trigger compare the attachment name?

Hello All, I have a scenario where in I need to send a mail alert once an attachment of a specific name is uploaded, I am inclined to write a trigger for this but can I use workflow as well? can trigger compare the attachment name?
RKSalesforceRKSalesforce
Hi Saurabh,

This is not possible with Workflow Rule or Process Builder so only oprtion we have is Apex Trigger. yes we can comapair attachment name in trigger. Please refer to this link: https://developer.salesforce.com/forums?id=906F00000008yRVIAY  this is answered here.

Please let me know if this helped. AND Mark as a best answer.

Regards,
Ramakant