# Record.GetBySystemId(Guid) Method
> Version: _Available or changed with runtime version 4.0._
Gets a record by its SystemId.
## Syntax
```al
[RecordExists := ]  Record.GetBySystemId(SystemId: Guid)
```
## Parameters
Record
Type: record-data-type
An instance of the record-data-type data type.
SystemId
Type: ../guid/guid-data-type
The SystemId of the record to retrieve.
## Return Value
*[Optional] RecordExists*
Type: ../boolean/boolean-data-type
true if the record exists; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
## Remarks
Every record has a SystemId, which is stored in the SystemId field of the table. The SystemId cannot be changed.
## Example
This example shows how to use the GetBySystemId method to retrieve a record.
```al
var
    CustomerRec: Record Customer;
    Text000: Label 'Customer was found.';
begin
    If CustomerRec.GetBySystemId('{5286305A-08A3-E911-8180-001DD8B7338E}') then
    Message(Text000);
end;
```
## Related information
../../devenv-table-system-fields#systemid
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-getbysystemid-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-getbysystemid-method/
