Skip to main content
Agent used for Marketing functions, such as Forms.

Constructors

NSMarketingAgent()

Agent used for Marketing functions, such as Forms.

Methods

CreateDefaultFormEntity()

Sets default values into a new NSFormEntity.
Returns: CRMScript.NetServer.NSFormEntity
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Example:

CreateDefaultFormSubmissionEntity()

Sets default values into a new NSFormSubmissionEntity.
Returns: CRMScript.NetServer.NSFormSubmissionEntity
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Example:

CreateDefaultShipmentMessageBlockEntity()

Sets default values into a new NSShipmentMessageBlockEntity.
Returns: CRMScript.NetServer.NSShipmentMessageBlockEntity
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Example:

CreateDefaultShipmentMessageEntity()

Sets default values into a new NSShipmentMessageEntity.
Returns: CRMScript.NetServer.NSShipmentMessageEntity
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Example:

DeleteFormEntity(Integer)

Deletes the NSFormEntity
Returns: CRMScript.Global.Void Example:

DeleteFormSubmissionEntity(Integer)

Deletes the NSFormSubmissionEntity
Returns: CRMScript.Global.Void Example:

DeleteShipmentMessageBlockEntity(Integer)

Deletes the NSShipmentMessageBlockEntity
Returns: CRMScript.Global.Void Example:

DeleteShipmentMessageEntity(Integer)

Deletes the NSShipmentMessageEntity
Returns: CRMScript.Global.Void Example:

GetFormEntity(Integer)

Gets an NSFormEntity object.
Returns: CRMScript.NetServer.NSFormEntity Example:

GetFormSubmissionEntity(Integer)

Gets an NSFormSubmissionEntity object.
Returns: CRMScript.NetServer.NSFormSubmissionEntity Example:

GetPreviewMailing(Integer)

Gets a shipment message from its shipment address ID
Returns: CRMScript.NetServer.NSPreviewMailing Example:

GetPreviewMailingHeader(Integer)

Gets a shipment from its shipment ID
Returns: CRMScript.NetServer.NSPreviewMailingHeader Example:

GetShipmentMessageBlockEntity(Integer)

Gets an NSShipmentMessageBlockEntity object.
Returns: CRMScript.NetServer.NSShipmentMessageBlockEntity Example:

GetShipmentMessageEntity(Integer)

Gets an NSShipmentMessageEntity object.
Returns: CRMScript.NetServer.NSShipmentMessageEntity Example:

GetUserBlocks(Integer)

Gets the saved user blocks to be used in a shipment/mailing message
Returns: CRMScript.NetServer.NSShipmentMessageBlockEntity[] Example:

SaveFormEntity(NSFormEntity)

Updates the existing NSFormEntity or creates a new NSFormEntity if the id parameter is 0
Returns: CRMScript.NetServer.NSFormEntity Example:

SaveFormSubmissionEntity(NSFormSubmissionEntity)

Updates the existing NSFormSubmissionEntity or creates a new NSFormSubmissionEntity if the id parameter is 0
Returns: CRMScript.NetServer.NSFormSubmissionEntity Example:

SaveShipmentMessageBlockEntity(NSShipmentMessageBlockEntity)

Updates the existing NSShipmentMessageBlockEntity or creates a new NSShipmentMessageBlockEntity if the id parameter is 0
Returns: CRMScript.NetServer.NSShipmentMessageBlockEntity Example:

SaveShipmentMessageEntity(NSShipmentMessageEntity)

Updates the existing NSShipmentMessageEntity or creates a new NSShipmentMessageEntity if the id parameter is 0
Returns: CRMScript.NetServer.NSShipmentMessageEntity Example:

VerifyGoogleRecaptcha(String,String)

Tries to verify a Google recaptcha token. The token is gained from the recaptcha frontend component
Returns: CRMScript.Global.Bool Example: