Message.type

Note:

The content in this help topic pertains to SuiteScript 2.1.

Property Description

Message type that specifies how a message is processed. Enables you to pick the appropriate method to process a message.

Type

boolean

Module

N/pgp Module

Parent Object

pgp.Message

Sibling Object Members

Message Object Members

Since

2022.2

Errors

Error Code

Thrown If

READ_ONLY_PROPERTY

Setting the property is attempted.

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/pgp Module Script Samples.

            // Add additional code
...
const message = msgData.toMessage() // creates Message object

log.debug(message.type)

...
// Add additional code 

          

Related Topics

General Notices