0

I want to send the Case attachment in an email to Risk & Legal team when Manager approves the request. For this I have created the VF Email Template (Because in Email Template I have header, footer and need to send some details in an tabular format).

I also have the Approval Process for Approved and Reject, when manager approves the request an email alert goes to R&L Team, in that email I need to send the case attachment. I am following this URL: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_email_sending_attachments.htm

Through VF Email Template, how can I send the CaseId to controller or how can I attached the documents with VF Email template which will be going to R&L Team ?

3
  • I don't think so you can send attachment in approval process. google.co.in/…
    – MIX DML
    Commented May 2, 2017 at 12:31
  • I've included lists of attachments in vf email template with an apex:repeat, but never tried to send the attachments themselves. Would a list w links suffice?
    – gorav
    Commented May 3, 2017 at 0:13
  • No, I would need to compulsory send the Case Attachments (Present in the Notes and Attachment section) in a alert mail to Risk and Legal Team. Commented May 3, 2017 at 3:52

1 Answer 1

0

You could use a merge field to send a link to the attachment you want to reference per this example expense approval process from the Help. Otherwise, I don't know of a standard means of doing what you ask.

The only alternative means might be to write a custom class using methods from the Approval Namespace to insert the approval request while adding the attachment at the same time. This is clearly not standard functionality and still may not process through the system as you'd like. It obviously wouldn't work if you allowed approvals to be made using SF1 in their Chatter Feed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .