# RecordRef.AddLoadFields([Integer,...]) Method
> Version: _Available or changed with runtime version 6.0._
Specifies additional fields to be initially loaded when the record is retrieved from its data source. Subsequent calls to AddLoadFields will not overwrite fields already selected for the initial load.
## Syntax
```al
[Ok := ]  RecordRef.AddLoadFields([Fields: Integer,...])
```
## Parameters
RecordRef
Type: recordref-data-type
An instance of the recordref-data-type data type.
*[Optional] Fields*
Type: ../integer/integer-data-type
The FieldNo's of the fields to be loaded.
## Return Value
*[Optional] Ok*
Type: ../boolean/boolean-data-type
true if all fields are selected for subsequent loads; otherwise, false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
## Remarks
Calling SetLoadFields on a record without passing any fields will reset the fields selected to load to the default, where all readable normal fields are selected for load.
> NOTE
> Only fields of `FieldClass = Normal` are supported as input values for the Fields parameter. If fields of `FieldClass = FlowFilter` or `FieldClass = FlowField` are passed, the return value will be false if observed; otherwise, a runtime error will occur.
This method is part of the partial records capability for improving performance. See Using partial records<../../devenv-partial-records>.
## Example
This code example uses the AddLoadFields method to make sure that if a record is a Currency, then the Currency Factor field is loaded. This code would have to be called before a database operation is executed on the RecordRef.
```al
procedure AlwaysNeededFields(VAR MyRecordRef: RecordRef)
var
        Currency: Record Currency;
begin
if (MyecordRef.Number = Database::Currency) then
// We always want the Currency."Currency Factor"
MyRecordRef.AddLoadFields(Currency.FieldNo(Currency."Currency Factor"));
end;
```
## Related information
Using Partial Records<../../devenv-partial-records>
recordref-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/recordref/recordref-addloadfields-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/recordref/recordref-addloadfields-method/
