Skip to main content
Agent used for Customer Service methods.

Constructors

NSCustomerServiceAgent()

Agent used for Customer Service methods.

Methods

AddMessageFromMailData(Integer,String)

Adds a message to an existing request in the sam way as importMail would do it from an email.
Returns: CRMScript.NetServer.NSTicketInfo Example:

ChatSessionsForUser()

Gets all chat TOPICS which this user is a member of.
Returns: CRMScript.NetServer.NSChatSession[] - chat topics.
Members means that you have at least one of: Can Respond, Notifications, Listen or Manager
Example:

CheckIfCustomizedTemplates()

Checks whether the core HTML templates are customized
Returns: CRMScript.Global.Bool Example:

CheckSymmetricEncryption(String)

Checks that we are using the same encryption keys
Returns: CRMScript.Global.String Example:

CreateDefaultCustomerCenterConfig()

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

CreateDefaultMailboxEntity()

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

CreateDefaultSmsConfig()

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

CreateSession(String)

Creates a login session for a CS user
Returns: CRMScript.NetServer.NSCsSessionKey Example:

CreateTicketFromMailData(Integer,String)

Creates a new ticket in the same way as importMail would import an email.
Returns: CRMScript.NetServer.NSTicketInfo Example:

DeleteChatSessions(Integer[])

Deletes the specified chat sessions.
Returns: CRMScript.Global.Void Example:

DeleteCustomerCenterConfig(Integer)

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

EventHandlerExists(Integer)

Checks if an event handler exists.
Returns: CRMScript.Global.Bool Example:

ExecuteEventHandlers(NSEventData)

Executes event handlers in CRMScript for a given event.
Returns: CRMScript.NetServer.NSEventData Example:

FindTicketsByTitleOrId(String,Integer)

Searches for tickets matching title or ID
Returns: CRMScript.NetServer.NSTicketInfo[] Example:

GetAllCustomerCenterConfigs()

Gets all rows from cust_config as an array of NSCustomerCenterConfig entities
Returns: CRMScript.NetServer.NSCustomerCenterConfig[] Example:

GetCustomerCenterConfig(Integer)

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

GetCustomerServiceStartup()

Gets the carrier with data that Service needs when starting up
Returns: CRMScript.NetServer.NSCustomerServiceStartup Example:

GetMailboxEntity(Integer)

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

GetMailboxes()

Gets all registered mailboxes in Service
Returns: CRMScript.NetServer.NSMailbox[] Example:

GetProgramUrl(String,Bool)

Converts a module name into a Service URL.
Returns: CRMScript.Global.String Example:

GetSmsConfig()

Gets the NSSmsConfig settings for Customer Service SMS providers.
Returns: CRMScript.NetServer.NSSmsConfig Example:

GetStatistics()

Gets the calculated results for the required statistics for the Service Status page
Returns: CRMScript.NetServer.NSStatisticsDataSet[] - Array of StatisticsDataSet. Example:

HasChatNotify()

Checks if user has any chat notification
Returns: CRMScript.Global.Bool Example:

RemoveSession(Integer)

Removes a login session for a Service user
Returns: CRMScript.Global.Void

SaveAllCustomerCenterConfigs(NSCustomerCenterConfig[])

Saves an array of NSCustomerCenterConfig entities to the database
Returns: CRMScript.Global.Void Example:

SaveCustomerCenterConfig(NSCustomerCenterConfig)

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

SaveMailboxEntity(NSMailboxEntity)

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

SaveSmsConfig(NSSmsConfig)

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

SessionIsValid(String)

Checks if a Service session is valid
Returns: CRMScript.Global.Bool Example:

TestSmtpServer(String,String,Bool)

Tests an SMTP account, by sending an email to a special @superoffice.com account
Returns: CRMScript.NetServer.NSSmtpTestResult Example:

UpdateFeatureToggles(CsFeatureToggle[])

Updates the cached FeatureToggles for Service
Returns: CRMScript.Global.Void