Adding Notification Actions

Delectable Bonsai wants to improve visibility for new applications. They also want to automate updates for applicants, notifying them when their application is received, approved, or denied. Here you’ll add these notification actions to the Distributor Application object.

Add notification actions to the Distributor Application object.

Action for Application Submitted

  1. Begin editing the Distributer Application object.

  2. Go to the Actions tab and click Add ( Add Button ).

  3. Enter these values in the Basic Info tab:

    FieldValue
    Action LabelApplication Submitted
    Action NameapplicationSubmitted
    DescriptionOn After Add, send notifications to administrative users.
    ActiveTrue

    Enter these values in the Basic Info tab.

  4. Go to the Action Builder tab and set these values:

    FieldValue
    TriggerOn After Add
    ConditionN/A
    ActionNotification
    Notification TemplateApplication Submitted, Admin, User

    Enter these values in the Action Builder tab.

  5. Click Save.

Action for Application Received

  1. In the Actions tab, click Add ( Add Button ).

  2. Enter these values for Basic Info:

    FieldValue
    Action LabelApplication Received
    Action NameapplicationReceived
    DescriptionOn After Add, send notifications to applicants.
    ActiveTrue
  3. Go to the Action Builder tab and set these values:

    FieldValue
    TriggerOn After Add
    ConditionN/A
    ActionNotification
    Notification TemplateApplication Received, Applicant, Email
  4. Click Save.

Action for Application Approved

  1. In the Actions tab, click Add ( Add Button ).

  2. Enter these values for Basic Info:

    FieldValue
    Action LabelApplication Approved
    Action NameapplicationApproved
    DescriptionOn After Update, send notifications to applicants when state is ‘Approved’.
    ActiveTrue
  3. Go to the Action Builder tab and set these values:

    FieldValue
    TriggerOn After Update
    ConditionapplicationState == "approved" AND status == 0
    ActionNotification
    Notification TemplateApplication Approved, Applicant, Email
  4. Click Save.

Action for Application Denied

  1. In the Actions tab, click Add ( Add Button ).

  2. Enter these values for Basic Info:

    FieldValue
    Action LabelApplication Denied
    Action NameapplicationDenied
    DescriptionOn After Update, send notifications to applicants when state is ‘Denied’.
    ActiveTrue
  3. Go to the Action Builder tab and set these values:

    FieldValue
    TriggerOn After Update
    ConditionapplicationState == "denied" AND status == 0
    ActionNotification
    Notification TemplateApplication Denied, Applicant, Email
  4. Click Save.

Triggering the Notification Actions

Now that you’ve added and activated the notification actions, you can trigger them by adding and updating object entries:

  1. Go to the Distributor Applications page and create an new entry.

  2. Verify the Application Submitted and Application Received actions run.

    Verify the Application Submitted and Application Received actions run.

  3. Update the application’s state to Approved.

  4. Verify the Application Approved action runs.

    Verify the Application Approved action runs.

  5. Update the application’s state to Denied.

  6. Verify the Application Denied action runs.

    Verify the Application Denied action runs.

Great! These notifications can help improve visibility for new applications and keep applicants up to date on the state of their applications.

Now Delectable Bonsai wants to provide their Business Development Managers with a way to create business accounts for approved applicants easily.

Next: Automating Account Creation

Relevant Concepts

Capabilities

Product

Contact Us

Connect

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