Skip to main content
This agent can be used to manage number allocation.

Constructors

NSNumberAllocationAgent()

This agent can be used to manage number allocation.

Methods

CreateDefaultRefCountEntity()

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

DeleteRefCountEntity(Integer)

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

GetNumberEachTemplate()

Returns true or false if Automatically create new counters for new document templates
Returns: CRMScript.Global.Bool Example:

GetRefCountEntity(Integer)

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

SaveDefaultNumbering(NSRefCountEntity)

Saves default numbering values in preferences
Returns: CRMScript.Global.Void Example:

SaveRefCountEntity(NSRefCountEntity)

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

SetNumberEachTemplate(Bool)

Saves true or false if Automatically create new counters for new document templates
Returns: CRMScript.Global.Void Example: