Create notifications to inform your colleagues of the status of sync sessions.
Creating the workflow
- Click Configuration > Workflows.
- Click Add (+) and select Integration Sync Sessions from the list. The Begin and End blocks are automatically added to the canvas.
- Enter the name and a description of the workflow.
Editing the Begin block
Specify the criteria to trigger the workflow.
- Click Edit
.
-
Add rules to trigger the workflow.
- Select New+Edit from the Actions list.
- In the Integration equals field, specify the name of the integration.
- In the Object equals field, specify the type of integration.
- Click Save.
Important
Best practice is to select New + Edit in the Begin block. In some cases, a new integration when it is run starts with a status of Processing with no errors but fails as it progresses (which falls under the category of an Edit). In other cases, a new integration might fail immediately with an error (which falls under the category of New). Changing the Actions setting to New + Edit ensures that the workflow captures both scenarios.
Option 1: Sending notifications by email
Use the Notify block to alert your colleagues by email about the status of a sync session that has been completed.
- Click Blocks and drag and drop the Notify block onto the canvas.
- Click Edit
.
- On the Information tab, make the following changes:
- Enter the name of the Notify block.
- Deselect Notification so that you only receive an email notification.
- To provide a link to your Oomnitza workflow in the email, ensure that Include Link is selected.
- On the Recipients page, enter the recipients of the email. You can choose to select recipients from defined Oomnitza fields, roles, or users. Alternatively, you can manually enter email addresses. For further information, refer to Using the Notify block.
- On the Message tab, create your message. Click Add Metadata
to add metadata relating to the integration, such as the Status and number of Errors.
- Click Save.
Note
To configure the email header and footer, click Configuration > General > Global Settings. Change the key values for the email.header and email.footer. Learn more
Option 2: Using Slack to send notifications
The Slack Send Message preset sends a Slack message to the specified user or users.
Before you start
To use Slack to send notifications, your Slack OAuth credentials to Oomnitza need to be added to Oomnitza.
- Click Blocks and drag and drop the API block onto the canvas.
- Click Edit.
- In the Search pane, enter Slack Send Message.
- Click the arrow > to select the preset.
- Select your Slack credentials from the list.
- Enter your Channel ID or name. This is the channel where the Slack message is posted.
- Enter a brief message, for example, Integration Alert.
- Click the Advanced Mode button located in the upper right of the window.
- Select the Body tab. Click Add Metadata
to add metadata relating to the integration, such as the Status and number of Errors.
- Click Save.
Launching the workflow
Connect the blocks. See the illustrations below.
Validate and Launch the workflow.
Testing the workflow
- Navigate to the integration that you specified in the Begin block criteria.
- Select Run Now.
- Check the progress of your integration by selecting Sync Sessions.
- As soon as your integration appears in the Sync Sessions list, a workflow is triggered. Click Configuration> Workflows and click the workflow that you added.
-
Click Run Logs
.
- Your workflow should appear in the latest run log.
- Depending on the option that you chose, check your email inbox or Slack messages.
Comments
0 comments
Please sign in to leave a comment.