Optional
queryObj: NotificationQueryRetrieves all notifications from the application with optional filtering.
https://help.tago.io/portal/en/kb/articles/11-notification Notification
If receive an error "Authorization Denied", check policy Profile / Access notification in Access Management.
const result = await Resources.notifications.list({ read: false, amount: 10 });
console.log(result); // [ { id: 'notification-id-123', title: 'System Update', message: 'Features', ... } ]
Marks all notifications in the application as read.
https://help.tago.io/portal/en/kb/articles/11-notification Notification
If receive an error "Authorization Denied", check policy Profile / Edit notification in Access Management.
const result = await Resources.notifications.markAllAsRead();
console.log(result); // All TagoIO Notification Run Successfully Updated
Marks one or multiple notifications as read.
https://help.tago.io/portal/en/kb/articles/11-notification Notification
If receive an error "Authorization Denied", check policy Profile / Edit notification in Access Management.
// Mark single notification
await Resources.notifications.markAsRead("notification-id-123");
// Mark multiple notifications
await Resources.notifications.markAsRead(["id-1", "id-2"]);
Marks one or multiple notifications as unread.
https://help.tago.io/portal/en/kb/articles/11-notification Notification
If receive an error "Authorization Denied", check policy Profile / Edit notification in Access Management.
// Mark single notification
await Resources.notifications.markAsUnread("notification-id-123");
// Mark multiple notifications
await Resources.notifications.markAsUnread(["id-1", "id-2"]);
Records when a notification button is pressed by the user.
https://help.tago.io/portal/en/kb/articles/11-notification Notification
If receive an error "Authorization Denied", check policy Profile / Edit notification in Access Management.
const result = await Resources.notifications.notificationButton("notification-123", "button-456");
console.log(result);
Permanently deletes a notification from the system.
https://help.tago.io/portal/en/kb/articles/11-notification Notification
If receive an error "Authorization Denied", check policy Profile / Delete notification in Access Management.
const result = await Resources.notifications.remove("notification-123");
console.log(result); // Successfully Removed
Description
Creates a new notification in the system.
See
https://help.tago.io/portal/en/kb/articles/11-notification Notification
Example
If receive an error "Authorization Denied", check policy Profile / Create notification in Access Management.