pgp.createMessageData(options)
The content in this help topic pertains to SuiteScript 2.1.
Method Description |
Creates a new pgp.MessageData object. A message data object stores message content with metadata. |
Returns |
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Sibling Module Members |
|
Since |
2022.2 |
Parameters
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
Content of the message. |
|
string |
optional |
File name if the message represents a file, empty string otherwise. |
|
Date object |
optional |
Date of the message or modification date of the file. Default value = new Date(). |
|
optional |
Literal data packet type. Default value = |
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 msgData = pgp.createMessageData({
content: 'Hello'
})
...
// Add additional code