Record.FindSet(Boolean, Boolean) Method

Version: Available or changed with runtime version 1.0 until version 11.0 where it was deprecated for the following reason: "This method has been deprecated because the parameter 'UpdateKey' is not used by the runtime. Use the overload without the 'UpdateKey' parameter instead."

Finds a set of records in a table based on the current key and filter.

Syntax

[Ok := ]  Record.FindSet(ForUpdate: Boolean, UpdateKey: Boolean)

Parameters

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

ForUpdate
 Type: Boolean
Set this parameter to true if you want to modify any records in the set; otherwise, set the parameter to false. If you set this parameter to true, then the records will be read with Updlock. If you set this parameter to false, then you can still modify the records in the set, but these updates will not be performed optimally. The default value is false.

UpdateKey
 Type: Boolean
The UpdateKey parameter has been deprecated and will be removed in the future.

Return Value

[Optional] Ok
 Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

See Also

Record Data Type
Getting Started with AL
Developing Extensions