Symptom
The user is attempting to send an email using SAC script code. Although the SAC script indicates that the email was sent successfully, the recipients do not receive the email.
Environment
SAP ANALYTICS CLOUD
Reproducing the Issue
- Schedule the story/Analytic application
- Add the code below into Onclick button:
if(Scheduling.isRunBySchedulePublication()){
var receivers = ArrayUtils.create(Type.string);
receivers.push(Application.getUserInfo().id);
receivers.push('UserEmail');
var content = 'Test message from code';
var emailSent = Application.sendNotification({
'content':content,
'title':'Test message from code',
'isSendEmail':true,
'receivers':receivers
});
if(emailSent){
Text_3.applyText('Email send successfully');
}else{
Text_3.applyText('Email trigger failed');
}
Scheduling.publish();
}
-> The email from schedule should send out successfully with PDF attachment but no Email sent
Cause
Product limitation
Resolution
Email notifications can only be sent to SAC users using their SAC IDs. This behavior is by design.
See Also
- 0002869645 - "How do you receive system notifications in SAP Analytics Cloud (SAC)?
- 0003194209 - "Issue regarding ApplicationDesigner Notification API Application.sendNotification()
- How to receive system notifications from SAP via Email
- Use sendNotification API
- Analytics Designer API Reference Guide
- 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- Have a question? Ask it here and let our amazing SAP community help! Or reply and share your knowledge!
- 2487011 - What information do I need to provide when opening an incident for SAP Analytics Cloud?
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- Search for SAP Analytics Cloud content using Google or Bing:
- https://www.google.ca/search?q=site%3Ahttps%3A%2F%2Fapps.support.sap.com+SAP+Analytics+Cloud
- https://www.bing.com/search?q=site%3Ahttps%3A%2F%2Fapps.support.sap.com+SAP+Analytics+Cloud
- Note: Add relevant text or warning/error messages to the text search field to filter results.
- SAP Analytics Cloud Connection Guide
- Getting Started with SAP Analytics Cloud Expert Community page
- SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support or visit the solution finder today!
Keywords