A SAC Custom Widget to send message to a whatsapp number from SAP Analytics Cloud
To use this widget in your SAP application, follow these steps:
- Download the
WhatsappWidget.jsonfile from the URLs specified in the webcomponents property of the JSON. - Go to your SAC Portal, select Analytic Application from the left side bar, and then go to the Custom Widget tab.
- Click on the + icon on the right side and select the
WhatsappWidget.jsonfile that you downloaded. - You're done! You can now use it in your app.
The widget has the following methods:
| Method | Parameter Type | Description |
|---|---|---|
| setNumber(number) | integer | Set Phone Number (without +) |
| setMessage(message) | string | Set Message to send |
| setCaption(caption) | string | Set Caption |
| Method | Return Type | Description |
|---|---|---|
| getNumber() | integer | return Phone Number (without +) |
| getMessage() | string | return Message to send |
| getCaption() | string | return Caption |
This widget is developed by Rohit Chouhan
