Setup Email Notifications with the Oracle Integration Cloud

The Oracle Integration Cloud (OIC) has an embedded Notification activity that allows to send emails. Very useful for error notifications or any other type of use cases that benefits from real time notification to a user or a group of users.

The Oracle Cloud Infrastructure (OCI) offers a more advanced email service, but the OIC native one is a good fit for simpler use cases.

Integration

I have an App Driven Integration that takes 4 parameters. This Integration was built to allow a website to send feedback.

Drag the Notification Activity from the Palette to the canvas.

Configure Notification

These are the fields we have to configure. From / To / Subject and Body. We can also include attachments.

In this case I will hardcode the From: “no-reply@techtrantor.com”

The To will be taken from the service input.

The Subject is also hardcoded: “Thank you for the feedback”

In the Body we can use also parameters from the input, but for that we do need to create them. It does not work with xpath directly.

Example of the expression mapping for the parameter feedback.

Once we define the parameters, we can invoke them from the body within brackets. See below.

Testing

That is all. We can now activate the Integration and give this a try.

And the email arrives after a few seconds!

As I mention at the beginning, this is a easy and fast service, but before deciding for it, carefully check the requirements and compare it with the OCI Email Service.

1 Trackback / Pingback

  1. October 21 - New OIC Articles - Implementing Oracle Integration Cloud

Comments are closed.