Skip to main content

AF Attribute Template AF Attribute Template


AF Attribute Template DeleteAF-Attribute-Template-Delete


Input​

InputsTypeMandatoryDescription
CheckinLimitintNThe amount of items updated before checking in.
AttributeTemplatesobject[]YArray of AttributeTemplates to create
TargetPrimaryPathstringYThe complete path to the AttributeTemplate
CreateSubAttributesboolN
SourceAttributeobjectYThe object that contains the attribute properties
AttributePropertiesarrayYThe Attribute Properties
NamestringYThe name of the attribute
DescriptionstringYThe description of the attribute
Categoriesarray of stringY
ConfigStringstringY
DataReferencePlugInstringY
DefaultUOMstringYthe Default UOM of the attribute
IsConfigurationItemstringY
IsManualDataEntrystringY
IsHiddenstringYHidden property
IsExcludedstringYExcluded property
ValueobjectYobject that stores information relating to the default value
IsAnythingValueboolY
TNType of the value
VNValue
TypeQualifierstringYThe Enumeration Set name
IsTypeQualifierGlobalboolYWhen the Enumeration Set is from Global rather than Database e.g ""System""
Categoriesstring[]YAll categories the attribute contains
AttributesYCan continuously dig down due to child attributes
AttributePropertiesarrayYThe Attribute Properties
AttributesarrayYCan continuously dig down due to child attributes

payload

Output​

OutputsTypeDescriptionExample
array[1]array
0objectobject
Propertiesobjectobject
Namestring""Sensor""
PrimaryPathstring""\NodeADSTestSystem\NodeTestCaseTarget\ElementTemplates[Pump]""
Templatestring""""
Actionstring""Created""

Payload Example​

msg.payload =     
{"AttributeTemplates": [
{
"TargetPrimaryPath": "\\\\"+ env.get("TestSystem")+"\\" + env.get("TestDatabase") +"\\ElementTemplates[Pump]",
"SourceAttribute": {
"AttributeProperties": {
"Name": "Sensor",
"IsATemplate": true,
"Description": "",
"ValueType": "Double",
"ConfigString": "",
"SimpleConfig": "",
"DataReferencePlugIn": "",
"DefaultUOM": "",
"DefaultValue": 0,
"DisplayDigits": -5,
"IsConfigurationItem": "False",
"IsManualDataEntry": "False",
"IsExcluded": "False",
"IsHidden": "False",
"TypeQualifier": "",
"IsTypeQualifierGlobal": false
"Categories": [],
"Value": {
"IsAnythingValue": false,
"T": "Double",
"V": 0
}
},
"Attributes": null
},
"TargetAttribute": null
}
]
};