getNotifications()

Overview

public query function getNotifications(
      required string  userId  
    ,          string  topic    = ""
    ,          string  dateFrom = ""
    ,          string  dateTo   = ""
    ,          numeric startRow = 1
    ,          numeric maxRows  = 10
    ,          string  orderBy  = ""
)

Returns the latest unread notifications for the given user id. Returns an array of structs, each struct contains id and data keys.

Arguments

NameTypeRequiredDescription
userIdstringYesid of the admin user whose unread notifications we wish to retrieve
topicstringNo (default="")
dateFromstringNo (default="")
dateTostringNo (default="")
startRownumericNo (default=1)
maxRowsnumericNo (default=10)maximum number of notifications to retrieve
orderBystringNo (default="")