SAP Knowledge Base Article - Public

3467724 - Default Email server not working - SAC

Symptom

The default email server doesn't work with the sendNotification API in analytical applications, which stopping notifications from reaching viewers.

Environment

SAP ANALYTICS CLOUD

Reproducing the Issue

  1. Create Analytic application
  2. Add button that will trigger the email notification
  3. Link the bellow code to the button: 

Application.sendNotification({ 
title: string, 
content?: string, 
receivers?: string[], // default: current user 
mode?: ApplicationMode, // default: Present 
parameters?: UrlParameter[], // array, no optional single URL parameter 
isSendEmail?: boolean, // default: false 
IsSendMobileNotification?: boolean // default: false 
});

-> No emails are sent.

Cause

With the default notification configuration, the Application sendNotification API only functions in the onInitialization script when the application is run on a schedule, this is by design.

Resolution

To enable sendNotification in a button script, configuring your own notification email server is necessary.

See Also

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning,sendNotification API, Email server, Analytic application, Email notification,  onInitialization
 
, KBA , LOD-ANA-AD-INF , Analytics Designer Infrastructure , LOD-ANA-UNS-DVP , Unified Story Developer Issues , Problem

Product

SAP Analytics Cloud 1.0