val nameParts = triggeringItem.name.toString.split("_")
val phoneLocation = nameParts.get(0) + "_Location"
val PointType phone_location = phoneLocation.state as PointType
The problem is that this item is String, but I need this as an Item… (I have an item which is called Name_Location…)
The type of that Item is Location… I have tried with … as PointType, but I have failed…