EcoResAttribute::findOrCreateAttribute Method
Finds or creates the attribute for the given name, reference record ID of the EcoResAttributeType table, and attribute modifier type.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
client server public static RefRecId findOrCreateAttribute(
Name _name,
RefRecId _attributeType,
[EcoResAttributeModifier modifier])
Microsoft Dynamics AX 2012 R2 (SYS)
client server public static RefRecId findOrCreateAttribute(
Name _name,
RefRecId _attributeType,
[EcoResAttributeModifier modifier])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static RefRecId findOrCreateAttribute(Name _name, RefRecId _attributeType)
Run On
Called
Parameters
- _name
Type: Name Extended Data Type
The name.
- _attributeType
Type: RefRecId Extended Data Type
The reference record of the attribute type.
- modifier
Type: EcoResAttributeModifier Enumeration
The value of the attribute modifier.
Return Value
Type: RefRecId Extended Data Type
The record of the EcoResAttribute table.