getSubscriptionStatus

getSubscriptionStatus

 

Description

Returns the notification subscription status for the provided user.

Syntax

getSubscriptionStatus(requestId_or_Key, userAccountId)

Package

 

Alias

 

Pkg Usage

 

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

requestId_or_Key

String

Yes

The ID or Key of the customer request from which the subscription status will be retrieved

userAccountId

Integer

Yes

The account ID of the user to be checked

Return Type

Boolean

Example

return getSubscriptionStatus("SM-1", currentUserKey());

Returns true if the user is subscribed to that request or false otherwise.

See also