# Record.AreFieldsLoaded(Any,...) Method
> Version: _Available or changed with runtime version 6.0._
Checks whether the specified fields are all initially loaded.
## Syntax
```al
Ok :=   Record.AreFieldsLoaded(Fields: Any,...)
```
## Parameters
Record
Type: record-data-type
An instance of the record-data-type data type.
Fields
Type: ../any/any-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 example shows how to use the AreFieldsLoaded method when you only need to load either the Name or the Name 2 field on the Customer table. The procedure selects which ever field is actually loaded. If neither is loaded, this causes a JIT load.
```al
procedure GetLoadedName(Cust: Record Customer): Text
begin
    if Cust.AreFieldsLoaded(Cust.Name) then
        exit(Cust.Name)
    else
        if Cust.AreFieldsLoaded(Cust."Name 2") then
            exit(Cust."Name 2")
        else
            exit(Cust.Name);
end;
```
## Related information
Using Partial Records<../../devenv-partial-records>
record-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/record/record-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/record/record-arefieldsloaded-method/
