Skip to end of metadata
Go to start of metadata

Introduction

Module 7 in the Introduction to the Jitterbit Harmony Cloud Studio training course demonstrates creating a an email notification that triggers upon failure of an operation.

Prerequisites

The operation created in Module 1 - Database to Text is used as an example. However, an email notification may be configured on any operation.

Summary

In this module, you will add an email notification to the operation created in Module 1 - Database to Text.

The completed operation will look like this:

1. Create and Add an Email Notification to an Operation

For this module, you continue working within the same workflow as Module 1 and add an email notification to the operation:

  1. In the top right of the operation, click the actions menu icon  and from the menu select Settings.
  2. Within the Actions tab, use the Action dropdown to select "Send Email Notification," then click Create New Email Notification.
  3. Configure the email notification:
    • Email Notification Name: "Operation Failure"
    • SMTP Email Server(s): Enter your own SMTP mail server.

      NOTE: If you're not familiar with this information, please reach out to your organization's internal administrator for details.
    • To Email Address(es): Enter any email addresses, separated by a comma, that you want the email to be sent to.
    • From Email Address: Enter the email address that you want the email to be sent from.
    • Subject: Enter "[jitterbit.operation.name] Failure" to leverage a Jitterbit variable that dynamically reports a failed operation's name.
    • Message: Enter the following message, again using Jitterbit variables that dynamically report information on the operation name and the specific error:
      There's been an operation failure within:
      [jitterbit.operation.name]

      The error was:
      [jitterbit.operation.error]

      Please check the logs within Cloud Studio or Management Console for further details.
  4. Click Save to return to the Actions tab and configure the operation action:
    • Make these dropdown selections:
      • Condition: "On Fail"
      • Action: "Send Email Notification"
      • Email Notification: "Operation Failure"
    • Click Add Action. The email notification will be shown in a table at the bottom of the configuration. Then close the operation settings.

The email notification should have a configuration similar to this:

The failure notification is graphically depicted on the design canvas:

2. Deploy the Operation

Next, you re-deploy the operation so that the configured operation action will take effect:

  1. In the top right of the operation, click the actions menu icon  and from the menu click Deploy. If the operation runs and fails, the email notification will be sent.

3. Remove or Edit an Email Notification

You can also remove the email notification as an operation action:

  1. On the design canvas, click the email notification block and from the menu select View/Edit to reopen the notification configuration, or select Remove to remove the notification from the operation.
On This Page

Last updated:  Jan 29, 2020

  • No labels