Skip to content

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 Examples

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}`);

Cautions

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