I'm trying to automatically create new UDT instances based on a SQL query from a database with the active orders for the production line.
I have succeeded with the creation of the instances with the correct names but I can't figure out how I should populate the nested UDTs...
I use system.tag.configure and according to Wiki, it's possible to both use parameters and "tags":[]. system.tag.configure (example #5 and #6).
I would preferably not use parameters as this UDT is quite large with a lot of nested UDTs so creating a parameter for each tag, link them and have every script point to a parameter instead is quite a lot of work.
Below are pictures of the UDT definition and the result of a system.tag.getConfiguration() from a UDT instance I created manually. The memory tag "Antal" is "Quantity" in Swedish and it is the one I have been trying to populate first, there are more tags I need to do the same thing to but if I can figure this one out I should be able to fix the rest.
I have tried "tags":[{}, {"tags":[{"value":VARIABLE}]}], "tags"[1]:{"tags"[0]:{"value":VARIABLE}} and other different combinations.
Is there a way to do this or do I have to either add parameters or do a system.tag.writeBlocking afterwards to get my desired functioin?
Any help is appreciated!

