
In SAP Service Cloud V2, the Alerts System API provides a seamless way to integrate alert messages into the system. This API allows businesses to send real-time alerts to users, ensuring that important notifications are displayed in the Alerts view of the application. By leveraging this API, businesses can improve customer engagement, enhance user experience, and streamline alert management processes.
The API exposes a dedicated endpoint where businesses can send alert messages using Cloud Platform Integration (CPI) or other integration methods. The alerts appear in the system in the same order they are sent, ensuring proper tracking and prioritization.
To enable the Alerts System API, businesses must configure the Communication System and Communication Arrangements in SAP Service Cloud V2:
Communication System: Defines the external system that communicates with SAP Service Cloud V2.
2.Communication Arrangements: Establishes the integration scenario, specifying the API services and authentication details.
Setting up these components ensures secure and seamless data exchange between systems.
When sending an alert, the following system-provided attributes should be used to ensure consistency and proper identification:
Attribute Description
userId | The UUID of the logged-in user/agent. |
loggedInLanguage | The language of the user’s login. Alerts can be sent in the selected language. |
contextType | Always set to INDIVIDUAL_CUSTOMER. |
contextId | The UUID of the individual customer. |
displayId | The display ID of the individual customer. |
The system receives the following JSON request format as an incoming payload:
{
"userId": "<< UUID of the user>>",
"loggedInLanguage": "en",
"contextType": "INDIVIDUAL_CUSTOMER",
"contextId": "<< UUID of individual customer in V2 >>",
"contextDisplayId": "12345"
}
The following payload response represents the structure that the system can interpret and process alerts and their attributes:
{
"count": 2,
"alerts": [
{
"signalType": "extAlert",
"object": {
"objectType": "INDIVIDUAL_CUSTOMER",
"displayId": "4501391",
"objectId": "<< UUID of the individual customer >>"
},
"groupText": "High",
"icon": "",
"color": "",
"message": "Fraud",
"source": {
"url": "<< navigation URL >>"
}
},
{
"signalType": "extAlert",
"object": {
"objectType": "INDIVIDUAL_CUSTOMER",
"displayId": "4501391",
"objectId": "<< UUID of the individual customer >>"
},
"icon": "",
"color": "",
"groupText": "Medium",
"message": "Photo not approved",
"source": {
"url": "<< navigation URL >>"
}
}
]
}
Each alert in the response must contain the following mandatory attributes:
Attribute | Description |
signalType | Defines the type of signal returned in the response (e.g., extAlert). |
object | Represents the associated object (customer details). |
message | Contains the alert message text. |
icon | Specifies the icon for the alert (e.g., error_filled). |
color | Defines the alert color (red, yellow, or green). |
This API call is triggered dynamically by the UI component. Each time the UI loads, it makes a real-time API request to fetch the latest alerts associated with the logged-in user. The system ensures that the most recent and relevant alerts are displayed.
Real-time notifications: Keeps users informed about critical updates.
Enhanced customer experience: Ensures timely communication of alerts.
Seamless integration: Works with CPI and other integration methods.
Customizable alerts: Supports multilingual messages and color-coded categorization.
The Alerts System API in SAP Service Cloud V2 is a powerful tool for integrating alerts and enhancing real-time communication. By leveraging this API, businesses can improve operational efficiency, ensure prompt responses, and deliver a superior customer experience. Start integrating today and take full advantage of the Alerts System API capabilities!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.