Notifications
Announcements
No record found.
function checkForDuplicates(executionContext) { var formContext = executionContext.getFormContext(); formContext.data.refresh(false).then(function success() { var duplicateFlag = formContext.getAttribute("eem_ContractDupeFlag3").getValue(); if (duplicateFlag === true || duplicateFlag === 1) { var alertStrings = { confirmButtonLabel: "OK", text: "A record with the same combination of fields already exists.", title: "Duplicate Warning" }; var alertOptions = { height: 120, width: 260 }; Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then( function success() { console.log("Alert closed"); }, function error() { console.error("Error showing alert dialog"); } ); } }, function error(err) { console.error("Error refreshing data: ", err.message); }); }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 70 Super User 2025 Season 2
Gerardo RenterÃa Ga... 43 Most Valuable Professional
Daniyal Khaleel 32 Most Valuable Professional