Dojo,
I am fetching alarms using the Repository API for an ad hoc data source. How can I build a filter that includes element or service property of alarms ? Any code snippet will be helpful.

Hi Wale,
This approach uses AlarmExposers to build FilterElements for applying filters.
I noticed there are extra exposers for the properties, but they return the values as a list. Because of that, I’m not sure you can filter by a specific property and value. What you can do is filter all property values at once.
For example:
AlarmExposers.PropertyValues.Equal("Gold")
This will return any alarm with at least one property value set to Gold, regardless of which property it is.
Alternatively, there is another set of alarm exposers called AlarmEventMessageExposers which expose the properties as a dictionary.
AlarmEventMessageExposers.PropertiesDict.DictStringField("Class").Equal("Gold");
I'm not sure if both type of exposers can be combined though.
Thanks for the detailed explanation Sebastiaan.