Loading
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
          Create a Flow for Appointment Emails with Calendar Invites in Virtual Care

          Create a Flow for Appointment Emails with Calendar Invites in Virtual Care

          Create a custom record-triggered flow to call an invocable action that adds a calendar file (.ics) to an appointment email. The attendance rate for Virtual Care appointments improves when a calendar invite is included in the appointment email.

          Required Editions

          Available in: Lightning Experience

          Available in: Enterprise and Unlimited Editions with Health Cloud

          User Permissions Needed
          To administer Video Calls: Health Cloud Video Calls permission set
          To create, edit, and delete flows: Manage Flows general user permission in the user's profile
          To add an organization-wide address: Modify All Data administrative permission in the user's profile
          1. If a No-Reply email isn’t set up for your org, create one.
            1. From Setup, in the Quick Find Box, enter Organization-Wide Addresses, and then select Organization-Wide Addresses.
            2. Under Default No-Reply Address, click Add in the Organization-Wide Email Addresses for User Selection and Default No-Reply Use section.
            3. Enter a display name. The display name is what a customer sees as the email’s Sender Name.
            4. Enter your No-Reply email address.
            5. Select Default No-Reply Address as the purpose.
            6. Save your work.
              Note
              Note An email is sent to the organization-wide email address. Follow the steps in the email to verify your org’s default No-Reply address.
          2. Identify an email template ID to use with this flow.
            Note
            Note The email template can be a Classic Email Template or Lightning Email Template. If you don’t have an existing template, follow these steps to create one: Email Template in Lightning Experience.
            1. From Setup, in the Quick Find Box, enter Classic Email Templates, and then select Classic Email Templates.
            2. Click the name of the template.
            3. In the URL address bar for your template, find the 15 character string of numbers and capital letters that starts with 00X. Make note of this ID so that you can add it to the flow.
              Email template ID highlighted in the address bar
          3. Create a record-triggered flow.
            1. From Setup, in the Quick Find Box, enter Flows, and then select Flows.
            2. Click New Flow.
            3. Click Start from Scratch, and then click Next.
            4. Select Record-Triggered Flow, then click Create.
            5. For the Object, select Service Appointment.
              Note
              Note The API Name is ServiceAppointment, the label is Appointment.
            6. Set the flow to trigger when a record is updated.
            7. For the entry conditions, select Any Condition is Met (OR).
            8. Enter these conditions:
              Field Operator Value
              SchedStartTime Is Changed True
              SchedEndTime Is Changed True
              StatusCategory Is Changed True
            9. For When to Run the Flow for Updated Records, select Every time a record is updated and meets the condition requirements.
            10. Set the flow to be optimized for actions and related records.
            11. Select Include a Run Asynchronously path to access an external system after the original transaction for the triggering record is successfully committed.
          4. Save the flow.
          5. Enter a Flow Label.
          6. Save the flow again.
          7. Add an assignment element to the flow to set the recipients of the email.
            1. Add an element by clicking flow auto layout plus sign.
            2. Click Assignment.
            3. Add a Label. We suggest Add Recipients.
            4. Keep the default API Name.
            5. For Set Variable Values, click the Variable input text box and select New Resource.
            6. For Resource Type, select Variable.
            7. For API Name, enter Recipients.
            8. For Data Type, select Text.
            9. Select Allow multiple values (collection).
            10. Click Done.
            11. For Operator, select Add.
            12. For Value, select {!Record.Account.PersonContactID}, and that shows as ($Record > Account ID > Contact ID).
          8. Add an assignment element to the flow for related records.
            1. Add an element by clicking flow auto layout plus sign.
            2. Click Assignment.
            3. Add a label. We suggest Add Related Records.
            4. Keep the default API Name.
            5. For Set Variable Values, click the Variable input text box, and select New Resource.
            6. For Resource Type, select Variable.
            7. For API Name, enter RelatedRecords.
            8. For Data Type, select Text.
            9. Select Allow multiple values (collection).
            10. Click Done.
            11. For Operator, select Add.
            12. For Value, select {!Record.ID}, and that shows as ($Record > Service Appointment ID).
          9. Add an action to the flow to send the email.
            1. Add an element by clicking flow auto layout plus sign.
            2. Select Action.
            3. In the Action Search box, enter Send Message, and then select Send Channel Message.
            4. Add a label. We suggest Send Message.
            5. Keep the default API Name.
            6. For Engagement Channel, enter Email.
            7. For Message Type Handler, enter Video Call Confirmation.
            8. For Recipient IDs, select the Recipients collection variable that you created.
            9. For Template ID, enter the 15-digit email template ID you noted from the url of the email template record.
            10. For Related Record IDs, click Include.
            11. For Related Record IDs, select the Related Records collection variable that you created.
              Note
              Note We suggest that you handle basic failures by creating a fault path in your flow. The Send Channel Message action has 2 output parameters that you can check. It has a success parameter and also outputs a list of failedRecipients.
          10. Save your changes.
          11. Activatethe flow.
           
          Loading
          Salesforce Help | Article