Message.type
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 | |
| Parent Object | |
| Sibling Object Members | |
| Since | 2022.2 | 
Errors
| Error Code | Thrown If | 
|---|---|
| 
                       | Setting the property is attempted. | 
Syntax
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