RecordRef.SetPermissionFilter() Method

Version: Available or changed with runtime version 1.0.

Applies the user's security filter to the referenced record. The security filter is combined with any other filters that are placed on the record with SetFilter or SetRange. The combined filter will not include any records outside the range of the security filter and this will prevent a runtime permission error from occuring when the record is read. If the permission filter is not set, an error can occur if you attempt to read a record that is outside the range of the user's security filter.

Syntax

 RecordRef.SetPermissionFilter()

Parameters

RecordRef
 Type: RecordRef
An instance of the RecordRef data type.

See Also

RecordRef Data Type
Get Started with AL
Developing Extensions