Breaking news from around the world
Get the Bing + MSN extension
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I have a requirement which i need to be done by Plugin.
There have a Account Record and when i open that Account Record and modify some of the fields and click on Save then the Record should not gets Saved.
Instead it shows Some Custom Message that " New record gets Created" and create a New Record with that updated details.
I need to do this using Plugin. Can anybody give me any solution that how should i proceed and achieve the same.
Thanks in Advanced.
As I know you can just throw exception in Update or Create event.
throw new InvalidPluginExecutionException("The record can't be saved")
On a side note, this sounds like an excellent way of filling up the accounts with a boatload of duplicates, each differing by only a typo and devoid of any value. If I were you I'd prepare to delete and rework the whole thing in a matter of weeks.
you can use this :
2- pass to it the execution context as shown below
3- Associate your function to Onsave event
4- execContext.getEventArgs().preventDefault(); // To Prevent the Form Save
Hope this helps
Business Applications communities