Hope my example will give you a hint on how to get all done the right way...
I've got several VMs in my lab which have names like "vm-one-65
So my need is to separate "SHARED" servers from a rest of my lab VMs. I am simply using something like this construction:
- Code: Select all
WHEN IndexOf(Name, "shared") = 0 THEN "Shared servers for all techs"
WHEN IndexOf(Name, "one") >= 0 THEN "Veeam ONE servers"
ELSE "Not even a Veeam ONE machine"
The idea is to see if a substring exists in a full VM's name or not. If it does then "IndexOf" function returns something which is greater than 0.NOTE
: "IndexOf" function returns 0 if a substring is actually a beginnings of a string.Using the construction mentioned above I get
1) All VMs which names are started with substring "shared
" go to "Shared servers for all techs" group.
2) All other VMs which names have substring "one
" in any given position go to "Veeam ONE servers" group.
3) Everything which is not related to Veeam ONE goes to "Not even a Veeam ONE machine" group
Hope it gave you some insight on how you can get what you need, Cary. Nevertheless, should any further help be required, please contact our support team via Customer Portal
so our techs can assist you on creating a complex Grouping Expression.
p.s. Btw, your document improvement request has been noticed