openErrorDialog

Displays an error dialog.

Available for

Model-driven apps

Syntax

context.navigation.openErrorDialog(options)

Parameters

Parameter Name Type Required Description
options ErrorDialogOptions Yes Error dialog options. The ErrorDialogOptions has the following attributes:
- details: String. Details about the error. When you specify this, the Download Log File button is available in the error message, and clicking it will let users download a text file with the content specified in this attribute.
- errorCode: Number. The error code. If you just set errorCode, the message for the error code is automatically retrieved from the server and displayed in the error dialog. If you specify an errorCode value, an error dialog with a default error message is displayed.
- message: String. The message to be displayed in the error dialog. You must set either the errorCode or message attribute.

Return Value

Type: Promise

Remarks

See Promise and File

Navigation
Power Apps component framework API reference
Power Apps component framework overview