I am currently trying to get Alarms for a specific Element using the GetAlarmDetailsFromDbMessage.
The response of the SendSLNetMessage Call will contain a maximum of 12 Alarms for a given Timeframe. Which however does not include all all the alarms.
I now tried running the SendSLNetMessage Call in a loop with the StartTime beeing the EndTime of the previous call. This however will return 0 Alarms for the second Call. I know that there should be more alarms during the Timeframe.
How do I retreive all alarms for a given frame?
I do know that it is recommended to not even use SendSLNetMessage, but I have not yet figured out the repository, so this will be temporary until then.
If your DMA is on version 10.1.0 or higher, you might want to try the Repository API for alarms:
You might notice that the first part is the same as the GetAlarmsDetailsFromDbMessage call as per the answer to this other question.
P.S. An automation script using the sample code above, requires the following namespaces: