Message show dialog with ok button using javascript d365

  if (evrVarRec != null && evrVarRec.entities != null && evrVarRec.entities.length > 0) {

                var alertStrings = { confirmButtonLabel: "Ok", text: "In system found workorders which system status not unsheduled and completed. Please first update the status completed after try again!", title: "Alert" };

                var alertOptions = { height: 120, width: 260 };

                Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then(

                    function (success) {

                        formContext.getAttribute("ecl_isclientdisease").setValue(false);

                    },

                    function (error) {

                        console.log(error.message);

                    }

                );

            }

Comments

Popular posts from this blog

Power Automate compose vs variable

Update record when checkbox checked using JavaScript and save d365

Power pages custom button add in gried