About token.item.labels

About token.item.labels

3250716938
Enthusiast Enthusiast
107 Views
3 Replies
Message 1 of 4

About token.item.labels

3250716938
Enthusiast
Enthusiast

3250716938_0-1788246206913.png3250716938_1-1788246230106.png3250716938_2-1788246240291.png

3250716938_3-1788246352430.png

 

That flexsim vision is 2027.0.1 
I create item and it's labels , but I can't get that labels value, when I used token.item.labels,  in the Flexsim2026, it's can be finish.  

 

0 Likes
Accepted solutions (1)
108 Views
3 Replies
Replies (3)
Message 2 of 4

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

You create multiple items per token, so the resulting "item" label is an array with references to all created items. You get an error when you try to access labels (or other properties) on this array as if it was a single object. The same is true in the 2026 version though, so your model must have worked differently there. I guess there you used the Run Sub Flow activity that is still visible in your screenshots?

0 Likes
Message 3 of 4

3250716938
Enthusiast
Enthusiast

I try to create 1 item per token, it's also get an error.  But I got the solution,  used token.item.as(Object).labels,  Set the type of item to object, it's worked.  I did no why. Maybe something change in 2027 version? 

0 Likes
Message 4 of 4

3250716938
Enthusiast
Enthusiast

Yes, you are right!  I double check that, the problem in array.   Thanks!

0 Likes