Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.78 KB

File metadata and controls

46 lines (31 loc) · 1.78 KB
title description ms.author author ms.date ms.reviewer ms.topic ms.subservice contributors
openErrorDialog (Power Apps component framework API reference) | Microsoft Docs
Displays an error dialog.
hemantg
HemantGaur
05/27/2022
jdaly
reference
pcf
JimDaly

openErrorDialog

[!INCLUDE openerrordialog-description]

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

Related articles

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

[!INCLUDEfooter-include]