# Save an array in OPC-UA Server structure

**URL:** <https://discourse.nodered.org/t/save-an-array-in-opc-ua-server-structure/21648>\
**Category:** General\
**Created:** [13 February 2020 12:10 UTC](https://discourse.nodered.org/t/save-an-array-in-opc-ua-server-structure/21648 "2020-02-13T12:10:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Federica](https://avatars.discourse-cdn.com/v4/letter/f/977dab/32.png) [@Federica](https://discourse.nodered.org/u/Federica)\
**Post date:** [13 February 2020 12:10 UTC](https://discourse.nodered.org/t/save-an-array-in-opc-ua-server-structure/21648/1 "2020-02-13T12:10:12Z")

</div>

Hello,  
I want to create an opc-ua server structure. I used the package'node-red-contrib-iiot-opcua' : I used OPC\_iiot\_Server node to create the server and OPC\_iiot\_ASO to create the folder 'Test1' and the variable 'Torque' under the same folder. I want to save an array in 'Torque' but I don't know what kind of ObjectType and DataType I have to assign. As a test, I have assigned ObjectType = BaseVariableType; Datatype = String; Value = '[1,2,3,4]' and I've read correctly from the client represented by UA Expert; but what should I do if I want to save an array of integers? In the DataType field I can't find the array type.  
This is my flow:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/f/9f9f30ec0b4c731b2758cbfa5785a54baeb86651.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2c2c5680ce7398f37619199ba1f6e76fbe53eab1.png)

Thank you in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 April 2020 12:10 UTC](https://discourse.nodered.org/t/save-an-array-in-opc-ua-server-structure/21648/2 "2020-04-13T12:10:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
