Alerts

Alerts artifact allows you to define business events. Once an alert is created, it can be raised from an automation. You can use the Raise Alert activity from the SDK Core to raise an alert from your automation.

Prerequisites

Before creating an alert, you first need to configure a Simple Mail Transfer Protocol (SMTP) server. For more information, see Configure a Mail Server.

Context

Alerts allow you to raise business events in your automation and pass along information with them for an alert (such as OutOfStock or S4LoginFailed alert). After deploying a package, you can subscribe to these Alerts in your environment using Alert Handlers to get notifications by email.

Procedure

  1. In the Project Explorer, click the button, and then the Create button, and select Alert.
  2. Enter a name in the Name field.
  3. Optional: Edit the Identifier field (without space).
  4. Optional: Enter a short description of the alert in the Description field.
  5. Click Create.
  6. A new tab opens in the main panel of the Cloud Studio. In Parameters (1) on the left, you can add the parameters in your alert by clicking the New Parameter button.
  7. In the center Message field, define a parametrized message where you can use the parameters defined in the previous step. The value of the parameter will be dynamically injected during the execution of the automation while using a parameter in the message.
  8. In Alert Information (3) on the right, Name field is already filled with the name of the alert.
  9. Optional: Edit the Name field.
  10. Optional: Enter a short description about the automation in the Description field.
  11. Select the type of the Severity: Information, Warning, or Error.
  12. Click Save to save your changes.

Results

You are now able to use your alert using the Raise Alert activity in your automation.

Next Steps

Now that you created an alert in your automation, you need to add an alert handler to an environment and link it to the alert you’ve created.

For more information, see Add Alert Handlers to an Environment.