Adding Notification Templates for Distributor Application

To this point, Delectable Bonsai’s Distributor Application has no automated notifications for entry events. This means administrators must check the object to learn of new submissions and inform applicants on the status of their applications manually. This strategy doesn’t scale and leaves room for human error, resulting in missed opportunities or poor user experience.

Here you’ll create these notification templates for use with the Distributor Application object:

EventRecipientType
Application SubmittedAdminUser
Application ReceivedApplicantEmail
Application ApprovedApplicantEmail
Application DeniedApplicantEmail

Create four notification templates for the Distributor Application Object.

Application Submitted Template

  1. Open the Global Menu ( Global Menu ), go to the Control Panel tab, and click Templates.

  2. Click Add ( Add Button ) and select User Notification.

  3. Scroll down to Definition of Terms and use the Entity drop-down menu to select the Distributor Application object.

    Scroll down to Definition of Terms and select Distributor Application.

    You can use these field references in the template to populate notifications dynamically with entry data. In the General Terms section are terms for referencing fields for the user that triggers the notification action.

  4. Enter these values for Basic Info:

    FieldValue
    NameApplication Submitted, Admin, User
    DescriptionSends user notifications to an administrative role whenever a distributor application is submitted.

    Enter these values for Basic Info.

  5. Enter these values for Settings:

    FieldValue
    RecipientsRole
    RoleBusiness Development Manager

    Enter these values for Settings.

  6. Enter this value for Content:

    FieldValue
    SubjectAPP-[%DISTRIBUTORAPPLICATION_ID%]: [%DISTRIBUTORAPPLICATION_APPLICANTNAME%] submitted a distributor application for [%DISTRIBUTORAPPLICATION_BUSINESSNAME%].

    Enter this value for Content.

  7. Click Save.

    tip

    Notification template ERCs use a randomly generated UUID, but you can change a template’s ERC after creation. Using consistent and human-readable ERCs can help when moving your templates and objects between environments (e.g., APPLICATION_SUBMITTED_ADMIN_USER).

Application Received Template

  1. Click Add ( Add Button ) and select Email.

  2. Enter these values for Basic Info:

    FieldValue
    NameApplication Received, Applicant, Email
    DescriptionSends email notifications to applicants to indicate their applications have been received.

    Enter these values for Basic Info.

  3. Enter these values for Settings:

    FieldValue
    To[%DISTRIBUTORAPPLICATION_APPLICANTEMAIL%]
    CCN/A
    BCCN/A
    From Addresssales@delectable-bonsai.com
    From NameDelectable Bonsai

    Enter these values for Settings.

  4. Enter this values for Content:

    FieldValue
    SubjectThank you for submitting your application!
    Editor TypeRich Text
    TemplateClick the Source button ( Source button ). Then, copy and paste the contents of ApplicationReceived_Applicant_Email.html into the Template field.

Enter these values for Content.

When rendered, the body of the message should look like this:

Enter these values for Content.

  1. Click Save.

Application Approved Template

  1. Click Add ( Add Button ) and select Email.

  2. Enter these values for Basic Info:

    FieldValue
    NameApplication Approved, Applicant, Email
    DescriptionSends email notifications to applicants to inform them that their applications have been approved.
  3. Enter these values for Settings:

    FieldValue
    To[%DISTRIBUTORAPPLICATION_APPLICANTEMAIL%]
    CCN/A
    BCCN/A
    From Addresssales@delectable-bonsai.com
    From NameDelectable Bonsai
  4. Enter this values for Content:

    FieldValue
    SubjectSweet things are in store for you!
    Editor TypeRich Text
    TemplateClick the Source button ( Source button ). Then, copy and paste the contents of ApplicationApproved_Applicant_Email.html into the Template field.

    When rendered, the body of the message should look like this:

    Enter these values for Content.

  5. Click Save.

Application Denied Template

  1. Click Add ( Add Button ) and select Email.

  2. Enter these values for Basic Info:

    FieldValue
    NameApplication Denied, Applicant, Email
    DescriptionSends email notifications to applicants to inform them that their applications have been denied.
  3. Enter these values for Settings:

    FieldValue
    To[%DISTRIBUTORAPPLICATION_APPLICANTEMAIL%]
    CCN/A
    BCCN/A
    From Addresssales@delectable-bonsai.com
    From NameDelectable Bonsai
  4. Enter this values for Content:

    FieldValue
    SubjectApplication Decision Update
    Editor TypeRich Text
    TemplateClick the Source button ( Source button ). Then, copy and paste the contents of ApplicationDenied_Applicant_Email.html into the Template field.

    When rendered, the body of the message should look like this:

    Enter these values for Content.

  5. Click Save.

Great! Now that you’ve added these templates, you can use them to define notification actions in the Distributor Application object.

Next: Adding Notification Actions

Relevant Concepts

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy