This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

RenameObject()

Deprecated in 3.0.

Please use rename() method of NetObj class.

RenameObject(object, name): bool

Rename object.

Table 1. Parameters

object

NetXMS object to be renamed. Can be NXSL class NetObj or any inherited for it. Reference to object can be obtained using FindObject function.

name

New name for object.

Return

true if the object was renamed, false if the script lacks modify access to the object.

RenameObject(FindObject(2), "My Services");    // Rename "Infrastructure Services" object