I am trying to add a child node into a Tree-Collection ‘items’ using a create-node in a workflow or by calling the items:create method of the API. Unfortunately, setting the ‘ParendId’ is not sufficient as the internal table ‘main_items_map’ gets not updated. The Tree-Table block is therefore not showing the correct structure.
In UI this operation gets performed by the ‘add Child’ action without any problem.
Am I overlooking something how to add child nodes in a tree-collection by workflow or API?
Did you add data using the Create record node?
yes, in the workslow I used the create record node.
I did not reproduce your problem.
Please reproduce this problem in the demo environment.
https://a_8hwne7u84ho.v13.demo.nocobase.com/admin/
(NocoBase default username and password)
You are right. I was able to produce the right behaviour on your demo environment (see Table, Workflow and View named TreeTableTest). The only difference I see is that your demo is on v2 while my system is runing on 1.9.30 yet. Let me do the same test setup on my system to check if that is depending on the version.