cancel
Showing results for 
Search instead for 
Did you mean: 

Analytics Designer send email

05-20-2021 7:41 PM
SAP Managed Tags
Subscribe

Hi,

We have a requirement to send an email to a user onClick of their name in a table within an Analytics Designer application (can use userID if necessary).

I have seen various posts and articles around the Application.sendNotification() API, but so far have been unable to get it to work onClick of a button (small POC dashboard).

Example code:

Application.sendNotification({
"title": "notification title",
"content": "notification content",
"receivers": ["MY_USER"],
"mode": ApplicationMode.View
});

Can anyone point me in the direction of a quick tutorial on using this API?

Any help much appreciated,
David

Accepted Solutions (1)

Accepted Solutions (1)

DebjitSingha
SAP Champion
SAP Champion

Hello davelee9,

You can refer this wonderful blog that takes you through all the steps required for app based scheduling click based setup in SAC:
How to schedule an analytic application for publication in SAP Analytics Cloud ?

Beside you can check SAP help document on the same as well. It goes over the AIP's you can use-

Schedule Publication for an Analytic Application

Viewers/ readers - If you find above information helpful, feel free to up-vote (arrows on left side).

Thanks,

Debjit

Former Member
0 Likes

Hi Debjit,

Thanks for your quick reply.

Is the sendNotification API available only for scheduled reports? Or is it possible to enable send notification during application runtime based on user input?

Thanks,
David

DebjitSingha
SAP Champion
SAP Champion
0 Likes

Hello davelee9,

Notification option is not supported yet.

Thanks,

Debjit

Galin_Manolov
Participant
0 Likes

Sending a mail with onClick() can be done with NavigationUtils.openUrl() and the mailto URL must be in unicode.

For example:

NavigationUtils.openUrl("mailto:[email protected]?subject=subject&body=body",true);

Answers (0)