Or just pass the UID?
Since I'm creating items from a JSON file using a function, then getting and passing the UID of the newly created items to another function "didn't feel right", I wanted to go another route.
I'll play around with the "On created" trigger and see where it leads me. Another alternative I'm exploring is changing the "color" function into a check on every tick with conditions and bypassing the need to call a function altogether.
Thank you all for the help!
Edit: Okay, for future reference if someone has the same issue, here's a solution with a check, bypassing the use of picking UID or using triggers ("On created" did not work for me for some reason).