{"title":"Record.AreFieldsLoaded(Any,...) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/record/record-arefieldsloaded-method/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-arefieldsloaded-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Checks whether the specified fields are all initially loaded.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Record.AreFieldsLoaded(Any,...) Method","slug":"recordarefieldsloadedany-method","at":0,"chars":1532},{"level":2,"title":"Syntax","slug":"syntax","at":163,"chars":68},{"level":2,"title":"Parameters","slug":"parameters","at":231,"chars":163},{"level":2,"title":"Return Value","slug":"return-value","at":394,"chars":267},{"level":2,"title":"Remarks","slug":"remarks","at":661,"chars":149},{"level":2,"title":"Example","slug":"example","at":810,"chars":536},{"level":2,"title":"Related information","slug":"related-information","at":1346,"chars":186}],"text":"# Record.AreFieldsLoaded(Any,...) Method\n> Version: _Available or changed with runtime version 6.0._\nChecks whether the specified fields are all initially loaded.\n## Syntax\n```al\nOk :=   Record.AreFieldsLoaded(Fields: Any,...)\n```\n## Parameters\nRecord\nType: record-data-type\nAn instance of the record-data-type data type.\nFields\nType: ../any/any-data-type\nThe FieldNo's of the fields to check.\n## Return Value\nOk\nType: ../boolean/boolean-data-type\ntrue 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.\n## Remarks\nThis method is part of the partial records capability for improving performance. See Using Partial Records<../../devenv-partial-records>.\n## Example\nThis 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.\n```al\nprocedure GetLoadedName(Cust: Record Customer): Text\nbegin\n    if Cust.AreFieldsLoaded(Cust.Name) then\n        exit(Cust.Name)\n    else\n        if Cust.AreFieldsLoaded(Cust.\"Name 2\") then\n            exit(Cust.\"Name 2\")\n        else\n            exit(Cust.Name);\nend;\n```\n## Related information\nUsing Partial Records<../../devenv-partial-records>\nrecord-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}