Skip to content

Developer Function: Server Script: notifications.Get

Overview

You can get notification information set for the target table.

Syntax

notifications.Get(id)

Parameters

Parameter Type Required Description
id int Specify the notification ID

Return Value

If the notification settings are retrieved, true is returned; if not, false is returned.

Usage Example

The following example gets the setting with notification ID 2 and outputs the ID and address to the log.

JavaScript
let notification = notifications.Get(2);
context.Log(`${notification.Id},${notification.Address}`);

Notes

This is a method used in "Server Script". It cannot be used in "Script".

Manage Table: Server Script
Execution Timing for Each Object
Notifications Object
Notification Object
Notifications.New Method