Class SpmShipment
Denotes a shipment in the eMarketeer module. A SpmShipment object will be responsible for the actual shipment. This object needs a SpmStaticList and a SpmMessage object as input.
Constructors
SpmShipment()
Initializes a new instance of the SpmShipment class.
Declaration
SpmShipment Methods
addList(Integer)
Adds a list of recipients to the shipment.
Declaration
Void addList(Integer list) Parameters
| Type | Name | Description |
| Integer | list | The ID of the list to add. |
Returns
| Type | Description |
| Void |
addListCRMProject(Integer)
Adds a CRM list of project members to shipment.
Declaration
Void addListCRMProject(Integer id) Parameters
| Type | Name | Description |
| Integer | id | ID of list to add. |
Returns
| Type | Description |
| Void |
addListCRMSelection(Integer)
Adds a CRM selection to shipment.
Declaration
Void addListCRMSelection(Integer id) Parameters
| Type | Name | Description |
| Integer | id | ID of selection to add. |
Returns
| Type | Description |
| Void |
addListSelection(Integer)
Adds a selection list to shipment.
Declaration
Void addListSelection(Integer id) Parameters
| Type | Name | Description |
| Integer | id | ID of selection list to add. |
Returns
| Type | Description |
| Void |
addListTicketSelection(Integer)
Adds a ticket selection list to shipment.
Declaration
Void addListTicketSelection(Integer id) Parameters
| Type | Name | Description |
| Integer | id | ID of list to add. |
Returns
| Type | Description |
| Void |
save()
Saves the SpmShipment object.
Declaration
save() Returns
| Type | Description |
| Integer | ID of the SpmShipment object. |
setDescription(String)
Sets the descriptive text of the SpmShipment.
Declaration
Void setDescription(String description) Parameters
| Type | Name | Description |
| String | description | A text which describes this shipment. |
Returns
| Type | Description |
| Void |
setFolderId(Integer)
Sets the folder that this SpmShipment will be stored in.
Declaration
Void setFolderId(Integer folderId) Parameters
| Type | Name | Description |
| Integer | folderId | The ID of the folder that this shipment will be stored in. A value of -1 indicates that it should be stored in the root folder. |
Returns
| Type | Description |
| Void |
setFrom(String)
Sets the from address of the outgoing email.
Declaration
Void setFrom(String from) Parameters
| Type | Name | Description |
| String | from | A string denoting the from address. |
Returns
| Type | Description |
| Void |
setMessage(Integer)
Sets the ID of the SpmMessage object that will be used for the shipment.
Declaration
Void setMessage(Integer messageId) Parameters
| Type | Name | Description |
| Integer | messageId | The ID of a valid SpmMessage object. |
Returns
| Type | Description |
| Void |