{"title":"Record.LoadFields(Any,...) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/record/record-loadfields-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-loadfields-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-loadfields-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":"Accesses the table's corresponding data source and loads the values of the specified fields on the record.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Record.LoadFields(Any,...) Method","slug":"recordloadfieldsany-method","at":0,"chars":1640},{"level":2,"title":"Syntax","slug":"syntax","at":203,"chars":65},{"level":2,"title":"Parameters","slug":"parameters","at":268,"chars":167},{"level":2,"title":"Return Value","slug":"return-value","at":435,"chars":247},{"level":2,"title":"Remarks","slug":"remarks","at":682,"chars":772},{"level":2,"title":"Related information","slug":"related-information","at":1454,"chars":186}],"text":"# Record.LoadFields(Any,...) Method\n> Version: _Available or changed with runtime version 6.0._\nAccesses the table's corresponding data source and loads the values of the specified fields on the record.\n## Syntax\n```al\n[Ok := ]  Record.LoadFields(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 be loaded.\n## Return Value\n*[Optional] Ok*\nType: ../boolean/boolean-data-type\ntrue if all values were loaded on the record; 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 will trigger a JIT load<../../devenv-partial-records#jit> of the specified fields. The method allows for triggering the JIT load on multiple fields. If the fields are already loaded, another load will not be triggered. Using this method instead of relying on implicit JIT loads lets you develop for more explicit error handling when a load fails.\n> NOTE\n> 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.\nThis method is part of the partial records capability for improving performance. See Using partial records<../../devenv-partial-records>.\n## Related information\nUsing Partial Records<../../devenv-partial-records>\nrecord-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}