on 07-15-2020 4:51 PM
Hi there,
I am currently trying to figure out how to send mails using the Notification API. Somehow it seems that nothing is triggered (the function is embedded in the canvas onInitialization() function. I guess the issue is the receivers object).
How is the `receivers` `users` logic basically? We tried hard coded mail-adresses as str in "receivers" as well as an empty receiver list to use the default which according to the docu is the current user. We never received an e-mail.
The official docu sends a mail to "Jack", but what would Jack looks like in our organisation?
// Get current user_object
var user_info = Application.getUserInfo();
// Print current user_object
console.log(user_info);
// Prints: {id: "JONAS", displayName: "Jonas"}
// Send mail to user, issue raised: https://answers.sap.com/questions/13093398/how-to-send-mails-with-applicationsendnotification.html
Application.sendNotification({
"title": "Test Title",
"content": "Test Content",
"receivers": ["JONAS"],
"mode": ApplicationMode.Present,
"isSendEmail": true
});
// Show success message
Info_Popup.open();
Hi,
I think Afshin Irani is right, this feature is only enable for Cloud Foundry and not NEO.
Also from the help doc: https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/00f68c2e08b941f081002fd3691d86a7/5e8acb2ae6004248ad3c0...
Notifications are only triggered when the analytic application is running via scheduling for publication. If you want to send notifications without scheduling, on the fly in the runtime, ensure that your own mail server’s been configured.
thanks,
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think Afshin Irani is right, this feature is only enable for Cloud Foundry and not NEO.
Also from the help doc: https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/b103a251020746f786ec0860fa51a63a/5e8acb2ae6004248ad3c0...
Notifications are only triggered when the analytic application is running via scheduling for publication. If you want to send notifications without scheduling, on the fly in the runtime, ensure that your own mail server’s been configured.
thanks,
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jonas & Petr,
As I understand this feature is only enable for Cloud Foundry and not NEO Clients.
This is based on the fact that Schedule & Publications is available on Cloud Foundry.
Again I have the right to be wrong here 🙂
Schedule publications are available in tenants which are provisioned on top of the SAP Cloud Platform Cloud Foundry environment. The list is as below:
Regards
Afshin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.