There is a label named 'Type' on a flowitem box, which is on a container pallet. I want to assign the box label 'Type' to a label on a token in process flow, where a token is created when the pallet enters a queue. Therefore the assigned 'item' on the token is the pallet. I tried accessing the box's label using the subnodes method in order to get the label value on the pallet:
item.subnodes[1].Type
However, I get the following error:
FlexScript exception: cannot access subnodes property on non-treenode Variant
How do I go about assigning a label value to a token, in process flow, from a value of a label on a box on top of a pallet?