insight_getObjectAttrType

Description

Returns the type of the attribute, either by id or by objectTypeId and key.

Parameters

Or

Return Type

IObjectAttrType

Examples

Example 1 - getting object attribute type by id

use "insight"; IObjectAttrType myAttribute; myAttribute = getObjectAttrType(12345); runnerLog(myAttribute.id); runnerLog(myAttribute.name); runnerLog(myAttribute.description);

Result:

Example 2 - getting object attribute type by object type id and key

use "insight"; IObjectAttrType myAttribute; myAttribute = getObjectAttrType(12345, "obj123"); runnerLog(myAttribute.id); runnerLog(myAttribute.name); runnerLog(myAttribute.description);

Result:

See also