Personalized Community is here!
Quickly customize your community to find the content you seek.
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
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have a custom field on the 'Job Ledger Entry' table which I call ResourceType and I I intend to be populating it with values based on the 'Type' value during new record.
I have tested the custom code to do this on the 'No. - OnValidate()', method of the No. field, 'OnInsert' method of the table but I found out that entries get posted to the table without that code being executed thereby inserting the default value into my ResourceType field.
My question is: Where do I need to place my code so that it can get executed anytime a new record is coming into the table. the new record could be coming from Journal Posting or any other area of the Nav application.
I'll appreciate your advice.
The Job Ledger Entry is created during job journal posting and which calls 1012 Codeunit, it has a function called CreateJobLedgEntry, you can add the code in that function to assign the value.
Thanks alot Kulla, I moved my code there and it worked.
Business Applications communities