getNotificationsCount()

Overview

public numeric function getNotificationsCount(
      required string userId
    ,          string topic  = ""
)

Returns the count of non-dismissed notifications for the given user id and optional topic

Arguments

NameTypeRequiredDescription
userIdstringYesid of the admin user whose unread notifications we wish to retrieve
topicstringNo (default="")topic by which to filter the notifications