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
Is there a way to to modify Mandatory property to No for an existing field in a extended table?
The property is disabled:
You can not modify some properties on extensions. You may have to handle it through code if you don’t want to overlayered base table
Do you have an example how to handle Mandatory propriety from the code?
datesource_ds.object(fieldNum(datesource, RefItemId)).mandatory(false);// or true. You can do that on form event
Need your help.
Added form event(Initialized) and set mandatory property to false :
But, on saving the record, the system shows a warning:
What else can I do to mark the field as non-mandatory?
You have done everything correct , there is nothing wrong in it . But one more thing I forgot to mention , if the property is mandatory at table level then its going to be difficult to change . If you really want to make it non mandatory I don't see any other option than changing it at table level
Move your code to OnActivated.
Move your code to OnActivated event handler.
It doesn't work.
The property is changed on form data source, but the error is returned by the table(on saving data to table).
any solution ?
Business Applications communities