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
sp13sp13 

upload attachment then run workflow rule

 

when i change a picklist value to 'approved', a workflow rule will run to send an email to my list of contacts. How can i add the attached file from the 'Notes and Attachments' related list of the record to the email/email template that will be sent when the rule is fired.

SaraagSaraag

Can you do it in Apex via Email classes?

 

For wf only, have looked at visualforce email templates? it lets you send text/csv attachments and render pdfs. It doesn't let you attach files though, you would have to build csv files from the information within the object's fields. I know it's not exactly  what you're looking for, but if nothing else may be you can use this info somehow...

 

Saraag