Loading
Salesforce now sends email only from verified domains. Read More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Update the Flow to Call the Apex Class

          Update the Flow to Call the Apex Class

          Call the Apex class to send an email with attachment to the policyholder when a case is closed by updating the Send Email with Attachment To Policy Holder action in the Flow.

          Required Editions

          Available in: Lightning Experience
          Available in: Professional, Enterprise, and Unlimited Editions
          User Permissions Needed
          To activate the Proof of Insurance Omniscript: Customize Application
          1. Open the orchestration that you created by cloning the Process Insurance Proof Request orchestration.
          2. Select Notify Account and Close Case.
          3. Click Open Flow in Flow Builder.
          4. Click Send Email with Attachment To Policy Holder.
          5. Click the plus symbol between the Send Email with Attachment to Policy Holder action and the Is Email Sent with Attachment decision element.
          6. Click Action.
          7. Search for and select the Send Email to User with Attachment apex action.
          8. Enter these details:
            FIELD NAMEVALUE
            Label Send Email with Attachment To Policy Holder
            API Name SendEmailWithAttachmentToPolicyHolder
            Description Calls an action that sends an email with attachment to the policyholder when a case is closed.
             
            Store Output Values (Show advanced options)
            output emailAttachmentStatus
             
            Set Input Values for the Selected Action
            CaseId caseId
            Email Body ClosureEmailBodyTextTemplate
            Email Subject ClosureEmailSubjectTextTemplate
            Send To Email Id accountEmail
             
            Show advanced options
            Manually assign variables Select
          9. Save the flow.
           
          Loading
          Salesforce Help | Article