Calling convention: GetReasonCaptionByID(ReasonID: Integer,ShowFullReasonPath:Boolean): String
Description: Returns either the localized caption or the full reason path for a reason ID.
Parameters:
ReasonID: reason identifier; must not be NULL.
ShowFullReasonPath: True returns the full reason name/path; False returns the localized caption.
Returns: Localized reason caption or full reason path. NULL arguments and unknown IDs raise an error.
Availability: Default.
Example:
ReasonPath := GetReasonCaptionByID(ReasonID, True);