{"title":"ErrorInfo.PageNo([Integer]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/errorinfo/errorinfo-pageno-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-pageno-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-pageno-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 page number that the error relates to.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"ErrorInfo.PageNo([Integer]) Method","slug":"errorinfopagenointeger-method","at":0,"chars":1390},{"level":2,"title":"Syntax","slug":"syntax","at":150,"chars":136},{"level":2,"title":"Parameters","slug":"parameters","at":286,"chars":188},{"level":2,"title":"Return Value","slug":"return-value","at":474,"chars":113},{"level":2,"title":"Remark","slug":"remark","at":587,"chars":184},{"level":2,"title":"Example (set the PageNo property)","slug":"example-set-the-pageno-property","at":771,"chars":420},{"level":2,"title":"Related information","slug":"related-information","at":1191,"chars":199}],"text":"# ErrorInfo.PageNo([Integer]) Method\n> Version: _Available or changed with runtime version 8.0._\nSpecifies the page number that the error relates to.\n## Syntax\n```al\n[PageNo := ]  ErrorInfo.PageNo([PageNo: Integer])\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] PageNo*\nType: ../integer/integer-data-type\nThe page number of the ErrorInfo\n## Return Value\n*[Optional] PageNo*\nType: ../integer/integer-data-type\nThe current page number of the ErrorInfo.\n## Remark\nYou use the PageNo property when also using a show-it action with the AddNavigationAction property. The PageNo then specifies where the action takes the user when activated.\n## Example (set the PageNo property)\n```al\n\nvar\n    MyErrorInfo: ErrorInfo;\n    TheCustomDimensions: Dictionary of [Text, Text];\nbegin\n    // setup the error info object: Define Message, DetailedMessage etc.\n\n    // setup show-it action(s) for the error info object\n    ChangeNotAllowedErrorInfo.PageNo(PAGE::\"MyPage\");\n    ChangeNotAllowedErrorInfo.AddNavigationAction('Some caption');\n\n    Error(MyErrorInfo);\nend\n```\n## Related information\nerrorinfo-data-type\n../../devenv-actionable-errors\n../../devenv-al-error-handling\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}