CRM and CX Blog Posts by Members
Find insights on SAP customer relationship management and customer experience products in blog posts from community members. Post your own perspective today!
cancel
Showing results for 
Search instead for 
Did you mean: 
pvsbprasad
Active Contributor
1,879

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.

Overview of the Alerts System API

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.

Communication System and Communication Arrangements

To enable the Alerts System API, businesses must configure the Communication System and Communication Arrangements in SAP Service Cloud V2:

  1. Communication System: Defines the external system that communicates with SAP Service Cloud V2.

pvsbprasad_1-1741507835901.png

      2.Communication Arrangements: Establishes the integration scenario, specifying the API services and authentication details.

pvsbprasad_0-1741507752825.png

Setting up these components ensures secure and seamless data exchange between systems.

Key Attributes for Alert Generation

When sending an alert, the following system-provided attributes should be used to ensure consistency and proper identification:

Attribute Description

userIdThe UUID of the logged-in user/agent.
loggedInLanguageThe language of the user’s login. Alerts can be sent in the selected language.
contextTypeAlways set to INDIVIDUAL_CUSTOMER.
contextIdThe UUID of the individual customer.
displayIdThe display ID of the individual customer.

Request Format

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"
}

 

 

Response Format

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 >>"
      }
    }
  ]
}

 

 

Mandatory Attributes in the Response

Each alert in the response must contain the following mandatory attributes:

AttributeDescription
signalTypeDefines the type of signal returned in the response (e.g., extAlert).
objectRepresents the associated object (customer details).
messageContains the alert message text.
iconSpecifies the icon for the alert (e.g., error_filled).
colorDefines the alert color (red, yellow, or green).

How the API Works in the UI

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.

pvsbprasad_2-1741507950947.png

Key Benefits of Using the Alerts System API

  • 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.

Conclusion

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!

13 Comments