{"title":"ErrorInfo.SystemId([Guid]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/errorinfo/errorinfo-systemid-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/errorinfo/errorinfo-systemid-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/errorinfo/errorinfo-systemid-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":"Specifies the system ID of the record that the error relates to.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"ErrorInfo.SystemId([Guid]) Method","slug":"errorinfosystemidguid-method","at":0,"chars":2079},{"level":2,"title":"Syntax","slug":"syntax","at":161,"chars":139},{"level":2,"title":"Parameters","slug":"parameters","at":300,"chars":182},{"level":2,"title":"Return Value","slug":"return-value","at":482,"chars":107},{"level":2,"title":"Remark","slug":"remark","at":589,"chars":441},{"level":2,"title":"Example (get the SystemId property)","slug":"example-get-the-systemid-property","at":1030,"chars":256},{"level":2,"title":"Example (set the SystemId property)","slug":"example-set-the-systemid-property","at":1286,"chars":545},{"level":2,"title":"Related information","slug":"related-information","at":1831,"chars":248}],"text":"# ErrorInfo.SystemId([Guid]) Method\n> Version: _Available or changed with runtime version 8.0._\nSpecifies the system ID of the record that the error relates to.\n## Syntax\n```al\n[SystemId := ]  ErrorInfo.SystemId([SystemId: Guid])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n## Parameters\nErrorInfo\nType: errorinfo-data-type\nAn instance of the errorinfo-data-type data type.\n*[Optional] SystemId*\nType: ../guid/guid-data-type\nThe system ID of the ErrorInfo\n## Return Value\n*[Optional] SystemId*\nType: ../guid/guid-data-type\nThe current system ID of the ErrorInfo.\n## Remark\nYou can use the SystemId property to transfer data from the code where an error message is shown to the user to the codeunit and method(s) executed by fix-it/show-it actions or where you handle collected errors.\nFor more information about how to develop actionable errors, see ../../devenv-actionable-errors.\nFor more information about how to handle multiple collected errors, see Collecting errors<../../devenv-error-collection>.\n## Example (get the SystemId property)\n```al\nprocedure myErrorHandlerProc(MyErrorInfo: ErrorInfo)\nvar\n    TheSystemId: Guid;\nbegin\n    TheSystemId := MyErrorInfo.SystemId();\n\n    // do something with the data (now we now the system ID for the row)\nend\n```\n## Example (set the SystemId property)\n```al\n\nvar\n    MyErrorInfo: ErrorInfo;\n    MyTableRec: Record \"MyTable\";\nbegin\n    // setup the error info object: Define Message, DetailedMessage etc.\n\n    // set identifiers for the fix-it action codeunit (or for the AL runtime in case of a show-it action)\n    MyErrorInfo.RecordId := MyTableRec.RecordId;\n    MyErrorInfo.SystemId := MyTableRec.SystemId;\n    MyErrorInfo.TableId := Database::\"MyTable\";\n\n    // setup fix-it or show-it action(s) for the error info object\n\n    Error(MyErrorInfo);\nend\n```\n## Related information\nerrorinfo-data-type\n../../devenv-actionable-errors\nCollecting Errors<../../devenv-error-collection>\n../../devenv-al-error-handling\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}