App Connect

 View Only

Using IBM® App Connect to interact with Email

By Shahmini Arumugam posted Thu August 04, 2022 04:08 AM

  

Co-author – Srihari Ananda Kumar 


Email is a mailing service for sending or receiving email messages both on-premises and on-cloud.  The standard email protocols include SMTP, POP3, and IMAP, each of which has different functionality and service for handling your email account.

Building a flow in IBM App Connect with Email

You can use email nodes in your flows to send and receive emails through connected email servers. The connector is displayed as Email on the App Connect User Interface (UI). 

To allow App Connect to connect to your Email account, you need to fill the connection fields that you see in the App Connect Designer Catalog page or flow editor. For more information on connection fields, see, How to use IBM App Connect with an email service.

Email objects

The following are Email events and action objects that can be run in App Connect.

Objects

Description

Emails

 

Email nodes are used to send and receive emails through connected email servers.

 

Folders

 

Emails come with a set of default folders: Inbox, Drafts, Sent Items, Spam, and Trash. These folders are system-level folders, which means they are required for basic operation of emails and can't be deleted.

 


Scenario 1: An email gets sent when a Salesforce opportunity update fails due to incorrect values

Consider the following scenario; when an opportunity update fails because of incorrect values, an email with the error details gets sent to the intended recipient.

An email gets sent when a Salesforce opportunity update fails due to incorrect values

In this flow:

  1. The event-driven flow is triggered whenever an opportunity is updated in Microsoft Dynamics 365 for Sales. It checks every minute to see whether the opportunities have been updated.
  2. If the Salesforce update opportunity fails because of updating the opportunity with incorrect values, an email with the error details gets sent to the intended recipient.

 In this example, the opportunity gets updated with the wrong campaign ID. Hence, the updated opportunity fails, and an email gets sent to the intended recipient from your email account.

The email gets triggered by configuring the Add error catch option.

Resources

Try out our templates

You can view the following use case in the Templates gallery in your App Connect Designer instance.

  • An email gets sent when a Salesforce opportunity update fails due to incorrect values

Template URL: https://<your-instance-id>/templates/An%20email%20gets%20sent%20when%20a%20Salesforce%20opportunity%20update%20fails%20due%20to%20incorrect%20values

You must enable the Designer AI features in your containerized environment in order to access the App Connect templates. For more information, see The preloaded IBM App Connect templates.

You can also import these use cases directly into your App Connect Designer. These templates are added to a public GitHub repository at https://github.com/ot4i/app-connect-templates/tree/cp4i-templates/resources.

0 comments
43 views

Permalink