Skip to main content
Describes behavior and content for a push notification message.

Constructors

NSPocketNotificationMessage()

Initializes a new instance of the NSPocketNotificationMessage class.

Methods

GetDate()

Returns: CRMScript.Global.DateTime - If the message is about some event happening at a specific date and time. Example:

GetDuration()

Returns: CRMScript.Native.TimeSpan - Specify duration of the event. Example:

GetExtraValues()

Returns: CRMScript.Native.Map - Additional key/value properties to include in the message. Example:

GetMessage()

Returns: CRMScript.Global.String - The notification message body. Example:

GetRecordId()

Returns: CRMScript.Global.Integer - If the message is about some specific database record, this could be its primary key. Example:

GetSilent()

Returns: CRMScript.Global.Bool - Indicates wether or not the message will vibrate/play a sound when delivered. Example:

GetTimeToLive()

Returns: CRMScript.Global.Integer - Specifies how many minutes the message should be valid. Example:

GetTitle()

Returns: CRMScript.Global.String - Title for the notification. Example:

GetType()

Returns: CRMScript.Global.Integer - The type of notification this is. See <xref href=“CRMScript.NetServer.NotificationMessageType” data-throw-if-not-resolved=“false”></xref>. Example:

GetUrl()

Returns: CRMScript.Global.String - A URL associated with the notification that will be handled by Pocket. Example:

SetDate(DateTime)

Returns: CRMScript.Global.Void Example:

SetDuration(TimeSpan)

Returns: CRMScript.Global.Void Example:

SetExtraValues(Map)

Returns: CRMScript.Global.Void Example:

SetMessage(String)

Returns: CRMScript.Global.Void Example:

SetRecordId(Integer)

Returns: CRMScript.Global.Void Example:

SetSilent(Bool)

Returns: CRMScript.Global.Void Example:

SetTimeToLive(Integer)

Returns: CRMScript.Global.Void Example:

SetTitle(String)

Returns: CRMScript.Global.Void Example:

SetType(Integer)

Returns: CRMScript.Global.Void Example:

SetUrl(String)

Returns: CRMScript.Global.Void Example: