getAttributeTypeByName

Fetches the ID of a named attribute type. (See getAttributeTypeRecordByName if you need the entire record.)

Arguments

Name Type Description
skey string

object_type string

The object type this attribute type applies to (use getAttributeObjectTypes to determine usable values).

type_name string

The name of the attribute type.

Return

The getAttributeTypeByName method returns the ID of the attribute type, or an empty string if it is not found (a string).

Exceptions

The getAttributeTypeByName method may report the following exceptions: