Sometimes we need to extend in the client side with a confirm dialog, below is the way of doing that with the Xrm.Utility namespace:
Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.
ParametersmessageType: String. The text of the message to display in the dialog.yesCloseCallbackType: Function. A function to execute when the OK button is clicked.noCloseCallbackType: Function. A function to execute when the Cancel button is clicked.RemarksThis method is only available for Updated Entities.