Description: Sums durations for the specified global reason and all of its descendant reasons in the selected container.
Calling convention: SumIfReasonID (ReasonID: Integer, "ReasonContainerName": String): Integer
Parameters:
ReasonID: global reason ID to match, including descendants.
ReasonContainerName: reason-container entry in the current record.
Returns: Total duration, or 0 when there are no matches. NULL is returned without a current record; the registered Integer type may not preserve non-integral durations.
Availability: Default; requires a current record and a valid reason container.
Example:
Total := SumIfReasonID(120, "DowntimeReasons");