Create an Apex Action to Send Email Notifications

Use the Apex class to create an Apex action that sends email notifications to unauthenticated users.

Required Editions

Available in: Lightning Experience.
Available in: Enterprise and Unlimited Editions
User Permissions Needed
To open, edit, or create a flow in Flow Builder: Manage Flow
To run a flow: Run Flows
  1. From the Elements panel, drag Action onto the canvas.
  2. From the Filter By dropdown list, select Type, and then click Apex Action.
  3. In the Action field, select Send Email to Guest.
  4. Enter a name, such as Send Email to Guest, and an API name, such as Send_Email_to_Guest for the element.
  5. Set these input values:
    Field Value
    appointmentId {!$Record.Id}
    leadEmail {!leadRecord.Email}
    leadId {!$Record.ParentRecordId}
  6. Click Done.
  7. Connect the Update Service Appointment Object element with this Action element.
  8. Save your changes, and then activate the flow.