Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Not sure if you got this resolved but the code i sent you before after i read your post doesnt fit what you need.
Now you may have time to find a faster simplier solution but this is quick and works but may not be for you. Just an idea.
It should return every team template in your system and then you can do an if statment off the string to get what your looking for.
publicc static void teamTemp(){
wt.team.TeamTemplate temp = null;
try{
QuerySpec qs = new QuerySpec (wt.team.TeamTemplate.class);
qs.appendWhere (new SearchCondition (wt.team.TeamTemplate.class, wt.team.TeamTemplate.NAME,SearchCondition.NOT_LIKE, " "), 0);
StatementSpec spec = (StatementSpec)qs;
QueryResult qr = PersistenceHelper.manager.find(spec);
while(qr.hasMoreElements()){
temp = (wt.team.TeamTemplate)qr.nextElement();
String name = temp.getContainerName();
}
}catch(WTException e){e.printStackTrace();}
}