Send Push Notifications using Deluge
Table of Contents
Note: This task is applicable only to Zoho Creator.
Overview
This task is used to send notifications to your users. For example, send notifications whenever a new record is added.
Notifications can be viewed in the "Notifications" tab inside the Zoho Creator app.
Syntax
<variable> = zoho.pushNotification(<emailID>, <title>, <message>, <reportLinkName>, <recordID>);
where,
Parameter | Data type | Description |
<variable> | KEY-VALUE | specifies the variable to hold the returned response. |
<emailID> | TEXT or LIST | specifies the email address of the Zoho Creator account to which the notifications will be sent. |
<title> | TEXT | specifies the title of the notification. |
<message> | TEXT | specifies the contents of the notification. |
<reportLinkName> | TEXT | specifies the link name of the Report in which the target record exists. Note:
|
<recordID> | NUMBER | specifies the ID of the record, which will be displayed when the notification is opened. |
Example
The following snippet sends a notification to the specified users when new feedback is received.
responseMessage = zoho.pushNotification({"tony@zylker.com", "john@zylker.com"}, "New feedback received", "Click to view the record", "All_Feedback_Report", input.ID);
Response Format
The following is a sample success response:
{
"status":"success"
}