Hi Dojo!
I'm having problems to get the Owner property when using:
engine.GetAlarmProperty(alarm.DataMinerID, alarm.AlarmID, "Owner"));
I'm always getting an empty string no matter if the alarm is ack or not...
Thank you in advance!
Hi Julian,
As Julian has already mentioned, the GetAlarmsProperty method can be used to retrieve custom properties. To retrieve the owner of an active alarm, the following code can be used:
var request = new GetAlarmDetailsMessage(dmaId, alarmId);
var alarm = (AlarmEventMessage)engine.SendSLNetSingleResponseMessage(request);
var owner = alarm.Owner;