Gmail Input Node in IBM ACE 12.0.10.0
Here in this blog, we will learn about Gmail Input Node in IBM App Connect Enterprise 12.0.10.0
Gmail has become one of the most popular email services globally, offering a reliable and feature-rich platform for personal and business communication. IBM provided Gmail input node in latest version of ACE to integrate with many applications which need Gmail services.
Gmail input node is used in many ways in the message flows few of them are:
To process the input data from Gmail like From, To, Subject, Body, Date, CC, BCC etc.
To monitor Gmail system for new mails.
The Gmail Input node operates in synchronous and non-transactional manner, that means, if a message flow fails and rolls back after the Gmail Input node, the operation on the data source will still complete.
The Gmail Input node generates business objects in JSON format from new mail which Gmail received from any external services.
Use the Gmail Input node in message where ever you want a business objects message tree to process the data and from the received Gmail.
Procedure:
- In the Google Cloud Platform, start a new project.
- Enable APIs and services in Google cloud.
- Get OAuth Client ID and Secret from Google cloud.
- Get Access Token and Refresh Token from Google Developers OAuth 2.0 Playground.
- Launch Connection Discovery by providing external vault key and policy to Gmail Input Node.
- Provide Client ID, Secret, Token and refresh Token to connect with Gmail.
- After successful connection close the connector discovery window.
- Execute mqsicredentials command for external vault by providing authentication details.
- Deploy the application in independent integration server which you created initially.
- Test the result
Message Flow:
Output:
As Gmail Input works automatically no external user interaction takes in the flow. The Gmail Input generates an JSON message as shown in above result section the sample JSON content is as below.
Test the flow by sending an mail to registered Gmail address.