GetUserNotificationStatus method: PTNotification class
Syntax
GetUserNotificationStatus(oprid)
Description
Use the GetUserNotificationStatus method to retrieve the notification channels that are enabled for a specified recipient. You should invoke this method after calling the Send method.
Parameters
| Parameter | Description |
|---|---|
|
oprid |
Specifies the user ID of the recipient as a String. |
Returns
A string representing the enabled channels in the order of In-app, mail, and text.
The following table describes the channels enabled for a recipient and the returned String value.
| In-app | Text | Return String | |
|---|---|---|---|
|
Not enabled |
Not enabled |
Not enabled |
NNN |
|
Not enabled |
Not enabled |
Enabled |
NNY |
|
Not enabled |
Enabled |
Not enabled |
NYN |
|
Not enabled |
Enabled |
Enabled |
NYY |
|
Enabled |
Not enabled |
Not enabled |
YNN |
|
Enabled |
Not enabled |
Enabled |
YNY |
|
Enabled |
Enabled |
Not enabled |
YYN |
|
Enabled |
Enabled |
Enabled |
YYY |
Example
&status = &objBroadcast.GetUserNotificationStatus( "USERID");