CRM and CX Blogs 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,272

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!

10 Comments
KunalBansal
SAP Champion
SAP Champion

Detailed and Insightful Blog, @pvsbprasad ! 👏🏻
Thanks for covering the key benefits of the Alerts API..👍🏻

Saurabh_Kabra
Participant
0 Kudos

Hey @pvsbprasad ,

I have 2 questions:

  1. Is this feature only available for "Individual Customers" UI and not for other UIs like Accounts or Opportunities or leads etc?(Content type is always set to INDIVIDUAL_CUSTOMER) And if yes, then do you know if there are plans to make it available in the future by SAP?
  2. What are the other allowed value of response's icon? "error_filled" was just an example, but how can one pass some warning or informational messages?

You wrote "To send an alert to the system, use the following JSON request format" but that's not true because (based on what I read on Help documentation, pls feel free to correct me) system sends these attributes to Alert API endpoint when UI loads and consuming system just need to consume the request body and send out the response payload back.

Thanks

Saurabh

yogananda
Product and Topic Expert
Product and Topic Expert

@pvsbprasad @Saurabh_Kabra 

External Alerts are not default available in all tenants, It needs to be requested via SAP Support Ticket to enable in your SAP Sales & Service Cloud v2 tenant.

john_heald
Advisor
Advisor

Loving the speed and flexibility of the system, and unbelievable what the team are able to add and showcsae so quickly, brilliant

 

Abhijit_Shinde
Product and Topic Expert
Product and Topic Expert

Keep going @pvsbprasad 👍

SrinivasaRaoK
Product and Topic Expert
Product and Topic Expert

Great Blog and Thanks for Good Community Asset, keep it up 👍

pvsbprasad
Active Contributor
0 Kudos

@yogananda/@Saurabh_Kabra  : Thank you for pointing this out. This is a feature flag that needs to be enabled by requesting it from the backend product team.

pvsbprasad
Active Contributor

@Saurabh_Kabra :

  • Currently, this feature is available in the agent desktop for both B2C and B2B customers.
  • Information can be categorized based on Group Text and Color.

 

VoJu
Participant
0 Kudos

Feature Flag is "feature.insights.externalAlerts"

VoJu
Participant
0 Kudos

Would also like to know which Icons are available.

Labels in this area