
Build a UI5 Apps That Sends Alerts to Telegram&Email via Node.js and ui5.
In modern manufacturing environments, fast and reliable communication between systems and people is essential to ensure uninterrupted production and quick response to unexpected events. This article introduces a custom notification solution integrated into SAP Digital Manufacturing (SAP DM) that enables real-time alerts via Email and Telegram.
By leveraging a custom UI5 interface and backend logic, operators and system events can trigger messages automatically or manually. These notifications can be used to inform maintenance teams about machine errors, alert quality teams about non-conformance (NC) entries, or allow operators to escalate issues directly from the shop floor.
The solution enhances visibility, reduces response time, and ensures that the right people are notified instantly — whether they're in front of a screen or on a mobile device.
This article explains how the integration was implemented, the configuration steps, and key benefits for production operations.
Create an SAP UI5 application on BTP-BAS that:
Takes user input from a ui5 form.
Sends it to a Node.js backend deployed on Cloud Foundry.
Open Telegram, search for @BotFather.
Send /newbot, follow prompts to set a name (e.g., leverxDm).
Save the API token (e.g., 7873332460:AAEZQ3pPWmVyiZjIbrQjWUwbVy******).
Use /setprivacy → Disable if your bot needs to read group messages.
Use /setcommands to add custom commands like /alert
Add your bot to a Telegram group.
Send a test message in the group.
Fetch the chat_id:
curl https://api.telegram.org/bot<TOKEN>/getUpdates
response= {
"chat": {
"id": *****,
"title": "SAP Alerts"
}
}
Initialize a Node.js project:
3. Deploy to Cloud Foundry:
cf login
cf push telegram-backend --random-route
In SAP Business Application Studio:
Create a new UI5 project (Fiori template).
Result:
To send emails via SAP BTP’s Mail API:
Install the SAP Cloud SDK:
4. Create Destination:
5. Bind the destination to the service:
Result:
SAP UI5 App → (HTTP POST) → Node.js Backend (CF) → Telegram Bot API ↓ SAP Mail Service (Optional)
What's could be easyly more:
Pco(Real time Machine Details) → SAP UI5 App → (HTTP POST) → Node.js Backend (CF) → Telegram Bot API ↓ SAP Mail Service (Optional)
Real-Time Alerts
Immediate notifications for machine errors, production delays, or system warnings — ensuring rapid response and reduced downtime.
Operator-Initiated Messages
Operators can manually trigger messages to report unexpected issues, safety concerns, or material shortages directly from the UI.
Multi-Channel Communication
Users can choose their preferred platform (email or Telegram) depending on urgency, accessibility, or working environment.
Better Visibility for Remote Teams
Whether in the office or on the go, responsible teams are kept in the loop — even without access to the SAP system.
Custom & Contextual Messaging
Notifications can include dynamic data like order number, station ID, error codes, timestamps, etc., for faster diagnostics.
Improved Collaboration
Team members can act faster and collaborate more effectively when relevant information is instantly shared through multiple channels.
Audit-Friendly Logging
All sent notifications (email & Telegram) can be logged for traceability and compliance purposes.
Reduced Reaction Time
Immediate delivery and visibility of messages help teams react faster than traditional escalation chains.
You’ve built:
✔ A UI5 app to trigger alerts.
✔ A Node.js middleware to relay messages.
✔ Telegram + Email notifications.
Thanks for reading! If you’ve implemented this solution, share your experience in the comments.
Emre Yoldas
ME/MII/DMC Consultant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |