Skip to main content
Skip table of contents

Generate an email when an association member joins a waitlist

Recipe Overview

As an administrator, you can set up Salesforce automation tools to send an email notification to a member when he or she successfully joins a waitlist.

In this recipe, you will:

  1. Configure Email Service in the org’s communication settings

If you already have it configured, then skip this step.

  1. Create an email template you would like your members to see when they are added to the waitlist.

  2. Create a Record Triggered flow to trigger the email notification.

Recipe Directions

Follow the directions for each phase of the process below. It should take one hour to set this up.

Configure SendGrid in the Org's communication settings

If you send out emails exceeding the Salesforce limit, then it is best to use SendGrid as your email service. If the email service is already configured for your org, then you can skip this step.

From Setup, search for Installed Packages.

  1. Click on Configure next to the Nimble AMS package.

    38259137-2fb6-4342-862f-349ad0dd1a22.png

    Figure 1. Configure tab

  2. Scroll down to the Communication Settings section of the page.

    1. Change the Email Service dropdown to SendGridEmailService

    2. Set the Email Service From Address to <YOUR_SENDER_EMAIL_ADDRESS>

    3. Set the Email Service API Key to <YOUR_API_KEY>

    4. Set the Email Service From Name to <YOUR_SENDER_NAME>

      Figure 2. Fields to select in the Communication Settings

  3. Click Save.

Create an Email Template

This template is only an example. Your association can create an email template that reflects your brand elements.

  1. From the Setup Home tab, search for Classic Email Templates and select it.

  2. Click on New Template button.

  3. Select Text for the Template Type.

  4. Click Next.

  5. Check Available for Use.

  6. Enter the Email Template Name

    1. Template Unique Name will auto-populate

  7. Enter text for Description

  8. Enter text for Subject

    1. You have been added to the waitlist for the {!znu__Waitlist__c.znu__Event__c} event

  9. Enter text for the Email Body

    1. Dear {!NullValue(znu__Waitlist__c.znu__FirstName__c, "Sir or Madam")}

      Thank you for your interest in attending the {!znu__Waitlist__c.znu__Event__c} event and joining the waitlist.

      Once a spot for registration opens up and is available, we will contact you to confirm the registration.

      If you have any questions in the meantime, please do not hesitate to contact us.

      Best regards,
      The {!znu__Waitlist__c.znu__Event__c} Event Team

  10. Click Save.

3aa7f044-7825-48ef-8648-b921e0a25f21.png

Figure 3. Sample email template

Configure a Record-Triggered Flow to trigger the Email Template.

  1. From Setup, search for Flows and select it.

  2. From the flow list, use the New Flow button.

    1. Choose Record Triggered Flow.

    2. Click Create.

  3. Select your Object

    1. Choose the Waitlist Object from the dropdown.

    2. Trigger the flow when a record is created.

      4d45bd3a-a57b-4694-b4ca-eafb85c14873.png

      Figure 4. Screenshot of the radio button to select

  4. Set Entry Conditionsto check that the Waitlist record created is NOT by the staff user profile.

    1. Select the Formula Evaluates to True option from the Condition Requirements drop-down

  5. Set the Condition using a formula

    1. Condition 1 = NOT(ISBLANK({!$Record.nu__Email__c})) && ({!$Record.Owner:User.Profile.Name} != 'Nimble AMS Standard') 

      • NOT(ISBLANK({!$Record.nu__Email__c})) - Checks that the email field is not blank.

      • ({!$Record.Owner:User.Profile.Name} != 'Nimble AMS Standard') - Checks that the waitlist was not created by a staff User. 

        fe756d42-821d-4138-8614-eaa794a856e7.png

        Figure 5. Screenshot of Entry Conditions

  6. Add an Action Element to the flow

    1. Search for the Send Emails invocable action apex-NU__SendEmailInvAct

    2. Label: <ENTER_LABEL>

    3. Set Input Values:

      • Toggle on Contact Id: {!$Record.NU__Account__r.PersonContactId}

      • Toggle on Org Wide Email Address Id: Enter your Org Wide Email Address Id.

      • Toggle on Template Id: Enter the Template ID of the email template that you created in the above steps.

      • Toggle on Template Related Record Id: {!$Record.Id}

      • Click Done

        c8f5c5e9-6cd0-4b20-8370-94cca4e42280.png

        Figure 6. Screenshot of Apex Values

  7. Save the Flow.                   

Recipe Results

After Association members successfully join an Event Waitlist, they will receive an email notification to the address that they specified.

Figure 7. Screenshot example of how the email notification will read

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.