Skip to main content

AF Element AF Element


AF Element CreateAF-Element-Create


Input​

InputsTypeMandatoryDescription
   payload
      ElementsArray of ElementsYOtherwise it's useless
         NamestringYName of Element to Create
         PathstringYPath to element parent
         TemplatestringN
         DescriptionstringN
         SecurityStringstringN
         CategoriesArray of stringsN
      SecurityStringbooleanYIs security to be overwritten
      CheckinLimitnumericN

Output​

OutputsTypeDescriptionExample
   payload
      array[1]array
         0objectobject
            NamestringName: ""Element A""
            TemplatestringTemplate: """"
            DescriptionstringDescription: """"
            PrimaryPathstringPrimaryPath: ""\DEV-AF1\NodeTestCaseSource\Element A""
            IDstringID: ""e0366580-9cb8-11ef-a993-000d3acafe05""
            ActionstringAction: ""Created""
            SecurityStringstringSecurityString: """"

Example Input Payload​

msg.payload = {
"Elements": [
{
"Name": 'Element1',
"Path": "\\\\"+env.get("TestSystem") + "\\" + env.get("TestDatabase")
}],
"SecurityString": true}
return msg;

Example Flow​

[
{
"id": "5354221070d0c9f4",
"type": "AF Element Create",
"z": "73566071f866aafa",
"name": "",
"x": 190,
"y": 120,
"wires": [
[]
]
}
]