# RecordRef.SystemIdNo() Method
> Version: _Available or changed with runtime version 4.0._
Gets the field number that is used by the SystemId field. The SystemId field is a system field that the platform adds to all table objects.
## Syntax
```al
SystemIdFieldNo :=   RecordRef.SystemIdNo()
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
RecordRef
Type: recordref-data-type
An instance of the recordref-data-type data type.
## Return Value
SystemIdFieldNo
Type: ../integer/integer-data-type
The field number of the SystemId field.
## Example
This example shows how to use the SystemIdNo method to retrieve the field number that is used by the SystemId field of a table.
```al
var
    CustomerRec: Record Customer;
    SystemIdFieldNo: Integer;
    Text000: Label 'The field number is: %1.';

begin
    CustomerRec.Open(Database::Customer);
    SystemIdFieldNo := CustomerRec.SystemIdNo();
    Message(Text000, Format(SystemIdFieldNo));
end;
```
## Related information
../../devenv-table-system-fields#systemid
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-systemidno-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-systemidno-method/
