I'm trying to group VMs based on folder, but most of the time there is subfolders.
I know in v8 it was not possible, is it possible in v9 ? I just upgraded and found the "Location" attribute, but interface won't show me what's inside "Location" because of characters length limitation in the rule editor :
If I put only "Location" in expression and enter a test VM, I get :
Expression result
>Virtual Infrastructure>vcenter.domain>DatacenterName>ClusterName...
Hello 2016 and slider bars to replace "..."

I tried :
Case
If IndexOf("TeamA", Location) > 0 Then "A"
If IndexOf("TeamB", Location) > 0 Then "B"
Else "Other"
End
Not working.
Any help ?
Thanks and sorry for my terrible english

sample hierarchy :
Datacenter
---> Cluster
--->--->TeamA
--->--->--->Prod
--->--->--->--->VM1
--->--->--->--->VM2
--->--->--->Test
--->--->--->--->Subtests
--->--->--->--->--->VM3
--->--->--->--->--->VM4
--->--->--->VM5
--->--->--->VM6
--->--->TeamB
--->--->--->Prod
--->--->--->--->VM7
--->--->--->--->VM8
--->--->--->Test
--->--->--->--->VM9
--->--->--->VM10
--->--->--->VM11