1 of 1 people found this helpful
Normally you would want to add conditions to the query that would limit the results to matching a specific condition (e.g. the 'Location' template in this example) and that is why only the equal operator is currently valid for the template filter. In the 2018 R2 (2.10.5) release, we are adding support for OR conditions which will allow you to search for multiple template names.
For now i'm searching for a common attribute between all templates that i want to search for.
Tried this token:
IList<AFSearchToken> DuplicatedToken = new List<AFSearchToken>();
DuplicatedToken.Add(new AFSearchToken(AFSearchFilter.Name, AFSearchOperator.Equal, Convert.ToString(AssetElement.Name)));
DuplicatedToken.Add(new AFSearchToken(AFSearchFilter.Template, AFSearchOperator.NotEqual, "Location"));
But it returned values that are equal to "Location"...