Hello @Harish ,
Thanks for posting this question over this forum.
We got a response from Microsoft's Product Team.
At the moment, we don't support arrays in properties.
Please follow Azure Digital Twins updates, blogs, and announcements to get the latest information on upcoming features. Also Product Updates page.
Updated: 11/16/2020: Posting Workaround suggested by the Product Team to achieve this scenario
There are a couple of approaches that could be taken:
- If the maximum size of the array is small, then it might be reasonable to explicitly create the fields in an object. For example, a line made up of two points could be modeled as an object with a point1 field and point2 field, instead of an array of points.
- If the number of elements in the array is variable, a DTDL Map (dictionary) could be used with the index value as the key name ("0", "1", etc.). This approach requires some additional client code to implement the array over the map structure.
Please let me know if you need further help in this matter.
Thank you,
Satish.