insight_getObjectAttrType

insight_getObjectAttrType

We've encountered an issue exporting this macro. Please try exporting again later.

Syntax

insight_getObjectAttrType(id) or insight_getObjectAttrType(objectTypeId, key)

Package

insight

Alias

Pkg Usage

getObjectAttrType(id) or getObjectAttrType(objectTypeId, key)

Description

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

Parameters

Parameter name

Type

Required

Description

id

Integer

Yes

The id of the object attribute.

Or

Parameter name

Type

Required

Description

objectTypeId

Integer

Yes

The id of the type of object being queried.

key

String

Yes

The key of the attribute.

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

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.