top of page

CRM 2015 – Javascript – Confirm Dialog




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:

confirmDialog


Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.







Xrm.Utility.confirmDialog(message,yesCloseCallback,noCloseCallback)

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.

5 views0 comments

Recent Posts

See All

CRM 365 - Customer field only show Accounts

On a customer field, if the requirement is to only show Accounts, please add this line to the OnLoad of the form: //Show only Account records when selecting the Customer formContext.getControl("cu

Execute Workflow Request on CRM 365 Cloud

Please find below an example of calling the Execute method to run a workflow on CRM 365 Cloud. let Id = formContext.data.entity.getId().replace('{', '').replace('}', ''); let request =

Comments


bottom of page