NXSL:GetDCIObject

From NetXMS Wiki
Revision as of 10:13, 23 September 2012 by Victor (talk | contribs)
Jump to navigation Jump to search

Get DCI object with given ID.

Syntax

GetDCIObject(node, id);


Parameters

node Node object, you can use predefined variable $node to refer to current node. You can also use null as node if trusted nodes check is disabled (see Security Issues for more information).
id DCI id on node.


Return Value

DCI object with given id on success or null on failure (if object with given id does not exist, or access to it was denied).


Examples

GetDCIObject($node, 2)	                -> object
GetDCIObject($node, bad_id)		-> NULL