CreateObject
CreateObject(ObjectType As Integer, ObjectId As Integer, sName As String[, sStationName As String[, Flags As Integer]]) As Integer
Creates an object of the given type.
The type of the object to create is defined by <ObjectType>:
- 0 = Tag
- 2 = User
- 3 = Call group
- 4 = Tag group
- 6 = Team
- 10 = Station
The parameter <ObjectId> returns the OId of the created object, if successful.
The parameter <sName> gives the name of the object to create.
The optional parameter <sStationName> gives the name of the attached station. By default it is the main station (empty string).
The optional parameter <Flags> defines specific options according to the object type. By default its value is 0.
Returns 0 if the object is created (or already exists) or an error code.