# ErrorInfo.AddNavigationAction([Text] [, Text]) Method
> Version: _Available or changed with runtime version 12.0._
Adds a navigation action for the error.
## Syntax
```al
 ErrorInfo.AddNavigationAction([Caption: Text] [, Description: Text])
```
## Parameters
ErrorInfo
Type: errorinfo-data-type
An instance of the errorinfo-data-type data type.
*[Optional] Caption*
Type: ../text/text-data-type
The text string that appears as the caption of the action in the error UI. The string can be a label that is enabled for multilanguage functionality.
*[Optional] Description*
Type: ../text/text-data-type
The text that appears as the tooltip of the action in the error UI.
## Remarks
The semantics of this method is the same as the version without a Description parameter. See ErrorInfo.AddNavigationAction([Text])<errorinfo-addnavigationaction-string-method>.
## Related information
errorinfo-data-type
../../devenv-actionable-errors
User experience guidelines for errors<../../devenv-error-handling-guidelines>
../../devenv-al-error-handling
Getting 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/errorinfo/errorinfo-addnavigationaction-string-string-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/errorinfo/errorinfo-addnavigationaction-string-string-method/
