# RecordRef.AreFieldsLoaded(Integer,...) Method
> Version: _Available or changed with runtime version 6.0._
Checks whether the specified fields are all initially loaded.
## Syntax
```al
Ok :=   RecordRef.AreFieldsLoaded(Fields: Integer,...)
```
## Parameters
RecordRef
Type: recordref-data-type
An instance of the recordref-data-type data type.
Fields
Type: ../integer/integer-data-type
The FieldNo's of the fields to check.
## Return Value
Ok
Type: ../boolean/boolean-data-type
true if all the fields specified by the Fields parameter are currently loaded; otherwise, false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
## Remarks
This method is part of the partial records capability for improving performance. See Using Partial Records<../../devenv-partial-records>.
## Example
This code example shows how you could use the AreFieldsLoaded method to determines how many fields are currently loaded for a given recordRef. Note that, because the platform might require more fields be loaded than specified by calls to SetLoadFields and AddLoadFields, the result might be larger than expected.
```al
procedure GetLoadedFieldCount(MyRecordRef: RecordRef): Integer
var
    MyFieldRef: FieldRef;
    LoadedFields: Integer;
    Idx: Integer;
begin
    for Idx := 0 to MyRecordRef.FieldCount do begin
        MyFieldRef := MyRecordRef.FieldIndex(idx);
        if (MyFieldRef.Active() AND MyRecordRef.AreFieldsLoaded(MyFieldRef.Number)) then
            LoadedFields += 1;
    end;

    exit(LoadedFields);
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-arefieldsloaded-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-arefieldsloaded-method/
