Hello, I have a custom code that essentially should do the same thing as the "pull from list" function in the ProcessFlow.
However, I have the following problem. "Pull from list" adds a label named "pull" to the token by default, and its value is an information about a single item or the location of the item, for example: "/Rack1/Box3".
In the ItemList, this information is always stored in the first column labeled "value". My problem is that with my custom code, I can only retrieve values from the columns Type, age, distance, and queueSize.
However, I don't know how to get the information from the "value" column. I tried pullResult.value.value but it obviously didnt work. I also cant find the "value" column in the proberties of the global list/ item list. So far, in my code, the value from the Type column is queried, but it should actually be the information from the "value" column (for example: /Rack1/Box3).
Does anyone know how to modify the code to retrieve this information from the list and assign it as a label? Alternatively, is there a way to add another column to the list containing the same information? I have also attached a model, with my code and the default "pull from list".model-1.fsm