Skip to main content
With this class you can create and edit static lists in the eMarketeer. A static list consist of one or more email addresses (and possible a matching name) which will be used when creating a shipment.

Constructors

SpmStaticList()

Initializes a new instance of the SpmStaticList class.

Methods

addRecipient(String,String)

Adds a recipient to the static list.
Returns: CRMScript.Global.Void
You must specify the email address of the recipient (the first parameter) and optional you can specify the name of the recipient.

delete()

Deletes a static list.
Returns: CRMScript.Global.Bool - If the list was actually deleted; otherwise, false.
If the list is in use by a shipment, the list will not be deleted.

getRecipients()

Gets a map of all the recipients in this list. The first element will be the email address and the second element the name of the recipient.
Returns: CRMScript.Native.Map - A map containing all the recipients.

load(Integer)

Loads an existing static list.
Returns: CRMScript.Global.Bool - False if the list was not found; otherwise, true.

removeRecipient(String)

Removes a recipient from the list identified by the email address.
Returns: CRMScript.Global.Void

save()

Saves the list and the recipients.
Returns: CRMScript.Global.Integer - The ID of the SpmStaticList object.

setFolderId(Integer)

Sets folder ID for a static list.
Returns: CRMScript.Global.Void

setName(String)

Sets the name of this list.
Returns: CRMScript.Global.Void
This is only a descriptive text that will be shown in Service.