Skip to main content
Represent a message in the eMarketeer module. You can create or modify such objects, which later is used by the SpmShipment class to send such messages.

Constructors

SpmMessage()

Initializes a new instance of the SpmMessage class.

Methods

save()

Saves an SpmMessage object. If this is a new SpmMessage object (no ID set), a new one will be created.
Returns: CRMScript.Global.Integer - The ID of the SpmMessage object.

setBody(String)

Sets the body version of the SpmMessage object (will correspond to the text/plain version in the outgoing email).
Returns: CRMScript.Global.Void

setBodyHtml(String)

Sets the HTML body version of the SpmMessage object (will correspond to the text/html version in the outgoing email).
Returns: CRMScript.Global.Void

setDescription(String)

Sets the descriptive text of the SpmMessage.
Returns: CRMScript.Global.Void
It is not used in the outgoing email, but will be visible when listed in Service.

setFolderId(Integer)

Sets the folder which this SpmMessage will be stored in.
Returns: CRMScript.Global.Void
If you specify a folder ID that does not exist, the message will not be visible through Service.

setHeader(String)

If you need to include additional email headers, they should be added here. You have to format these yourself.
Returns: CRMScript.Global.Void Example:

setSubject(String)

Sets the subject of the SpmMessage object. Corresponds to the subject in the outgoing email.
Returns: CRMScript.Global.Void