Class NSPreviewMailing

Constructors

NSPreviewMailing()

Declaration

NSPreviewMailing

Methods

GetContactId()

Declaration

Integer GetContactId()

Examples

NSPreviewMailing thing;
Integer contactId = thing.GetContactId();

Returns

Type Description
Integer Owning contact Id.

GetContactName()

Declaration

String GetContactName()

Examples

NSPreviewMailing thing;
String contactName = thing.GetContactName();

Returns

Type Description
String Contact name.

GetDocumentMessageId()

Declaration

Integer GetDocumentMessageId()

Examples

NSPreviewMailing thing;
Integer documentMessageId = thing.GetDocumentMessageId();

Returns

Type Description
Integer If a document was used as the message this is the document ID.

GetFromAddress()

Declaration

String GetFromAddress()

Examples

NSPreviewMailing thing;
String fromAddress = thing.GetFromAddress();

Returns

Type Description
String Email address to put in the From header of the messages.

GetLinkClicks()

Declaration

Integer GetLinkClicks()

Examples

NSPreviewMailing thing;
Integer linkClicks = thing.GetLinkClicks();

Returns

Type Description
Integer The number of links clicked in the mailing.

GetMessageId()

Declaration

Integer GetMessageId()

Examples

NSPreviewMailing thing;
Integer messageId = thing.GetMessageId();

Returns

Type Description
Integer Primary key.

GetMessageSubject()

Declaration

String GetMessageSubject()

Examples

NSPreviewMailing thing;
String messageSubject = thing.GetMessageSubject();

Returns

Type Description
String The mail subject field of the message.

GetOpened()

Declaration

DateTime GetOpened()

Examples

NSPreviewMailing thing;
DateTime opened = thing.GetOpened();

Returns

Type Description
DateTime Date/time the customer read the mailing.

GetPersonFullName()

Declaration

String GetPersonFullName()

Examples

NSPreviewMailing thing;
String personFullName = thing.GetPersonFullName();

Returns

Type Description
String Gets the persons full name (internal name used in clients for employees).

GetPersonId()

Declaration

Integer GetPersonId()

Examples

NSPreviewMailing thing;
Integer personId = thing.GetPersonId();

Returns

Type Description
Integer Primary key.

GetSendingTime()

Declaration

DateTime GetSendingTime()

Examples

NSPreviewMailing thing;
DateTime sendingTime = thing.GetSendingTime();

Returns

Type Description
DateTime Estimated or actual sent time (depends on status).

GetShipmentDescription()

Declaration

String GetShipmentDescription()

Examples

NSPreviewMailing thing;
String shipmentDescription = thing.GetShipmentDescription();

Returns

Type Description
String Describes the shipment.

GetShipmentId()

Declaration

Integer GetShipmentId()

Examples

NSPreviewMailing thing;
Integer shipmentId = thing.GetShipmentId();

Returns

Type Description
Integer Primary key.

GetShipmentType()

Declaration

String GetShipmentType()

Examples

NSPreviewMailing thing;
String shipmentType = thing.GetShipmentType();

Returns

Type Description
String The list item.

GetStatus()

Declaration

Integer GetStatus()

Examples

NSPreviewMailing thing;
Integer status = thing.GetStatus();

Returns

Type Description
Integer Status for sending to this particular recipient. See <xref href="CRMScript.NetServer.ShipmentAddrStatus" data-throw-if-not-resolved="false"></xref>.

SetContactId(Integer)

Declaration

Void SetContactId(Integer contactId)

Examples

NSPreviewMailing thing;
Integer contactId;
thing.SetContactId(contactId);

Parameters

Type Name Description
Integer contactId Owning contact Id.

Returns

Type Description
Void

SetContactName(String)

Declaration

Void SetContactName(String contactName)

Examples

NSPreviewMailing thing;
String contactName;
thing.SetContactName(contactName);

Parameters

Type Name Description
String contactName Contact name.

Returns

Type Description
Void

SetDocumentMessageId(Integer)

Declaration

Void SetDocumentMessageId(Integer documentMessageId)

Examples

NSPreviewMailing thing;
Integer documentMessageId;
thing.SetDocumentMessageId(documentMessageId);

Parameters

Type Name Description
Integer documentMessageId If a document was used as the message this is the document ID.

Returns

Type Description
Void

SetFromAddress(String)

Declaration

Void SetFromAddress(String fromAddress)

Examples

NSPreviewMailing thing;
String fromAddress;
thing.SetFromAddress(fromAddress);

Parameters

Type Name Description
String fromAddress Email address to put in the From header of the messages.

Returns

Type Description
Void

SetLinkClicks(Integer)

Declaration

Void SetLinkClicks(Integer linkClicks)

Examples

NSPreviewMailing thing;
Integer linkClicks;
thing.SetLinkClicks(linkClicks);

Parameters

Type Name Description
Integer linkClicks The number of links clicked in the mailing.

Returns

Type Description
Void

SetMessageId(Integer)

Declaration

Void SetMessageId(Integer messageId)

Examples

NSPreviewMailing thing;
Integer messageId;
thing.SetMessageId(messageId);

Parameters

Type Name Description
Integer messageId Primary key.

Returns

Type Description
Void

SetMessageSubject(String)

Declaration

Void SetMessageSubject(String messageSubject)

Examples

NSPreviewMailing thing;
String messageSubject;
thing.SetMessageSubject(messageSubject);

Parameters

Type Name Description
String messageSubject The mail subject field of the message.

Returns

Type Description
Void

SetOpened(DateTime)

Declaration

Void SetOpened(DateTime opened)

Examples

NSPreviewMailing thing;
DateTime opened;
thing.SetOpened(opened);

Parameters

Type Name Description
DateTime opened Date/time the customer read the mailing.

Returns

Type Description
Void

SetPersonFullName(String)

Declaration

Void SetPersonFullName(String personFullName)

Examples

NSPreviewMailing thing;
String personFullName;
thing.SetPersonFullName(personFullName);

Parameters

Type Name Description
String personFullName The persons full name (internal name used in clients for employees).

Returns

Type Description
Void

SetPersonId(Integer)

Declaration

Void SetPersonId(Integer personId)

Examples

NSPreviewMailing thing;
Integer personId;
thing.SetPersonId(personId);

Parameters

Type Name Description
Integer personId Primary key.

Returns

Type Description
Void

SetSendingTime(DateTime)

Declaration

Void SetSendingTime(DateTime )

Examples

NSPreviewMailing thing;
DateTime sendingTime;
thing.SetSendingTime(sendingTime);

Parameters

Type Name Description
DateTime sendingTime Estimated or actual sent time (depends on status).

Returns

Type Description
Void

SetShipmentDescription(String)

Declaration

Void SetShipmentDescription(String shipmentDescription)

Examples

NSPreviewMailing thing;
String shipmentDescription;
thing.SetShipmentDescription(shipmentDescription);

Parameters

Type Name Description
String shipmentDescription Describes the shipment.

Returns

Type Description
Void

SetShipmentId(Integer)

Declaration

Void SetShipmentId(Integer shipmentId)

Examples

NSPreviewMailing thing;
Integer shipmentId;
thing.SetShipmentId(shipmentId);

Parameters

Type Name Description
Integer shipmentId Primary key.

Returns

Type Description
Void

SetShipmentType(String)

Declaration

Void SetShipmentType(String shipmentType)

Examples

NSPreviewMailing thing;
String shipmentType;
thing.SetShipmentType(shipmentType);

Parameters

Type Name Description
String shipmentType The list item.

Returns

Type Description
Void

SetStatus(Integer)

Declaration

Void SetStatus(Integer status)

Examples

NSPreviewMailing thing;
Integer status;
thing.SetStatus(status);

Parameters

Type Name Description
Integer status Status for sending to this particular recipient. See <xref href="CRMScript.NetServer.ShipmentAddrStatus" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void