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 1Discover the latest updates and new features to Dynamics 365 planned April 2021 through September 2021.
Release overview guides and videos Release Plan | Preview 2021 Release Wave 1 Timeline
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
On Job Planning Line page, corresponding to the Resource No, I have to auto-fill the 'Employee No' field corresponding to the particular resource.
I wrote the following code on OnValidate trigger of 'No.' field on Job Planning Line table, but it is not meeting the requirement.
How to modify it !
Your code doesn't make any sense since you want to get the value from the Resource table, you need to get the Resouce record based on the type and then populate it.
Please check below
If Type = Type:: Resource then being
If Resouce.Get("No.") then
"Employee No." := Resource."Employee No."
Create Resource in the variables of type record for Resource table.
What about the setrange statement written. Do I have to keep it as it is?
No, you don’t need any of those just the code I have added
Shouldn't it be JobPlanningLine.Get(No.) instead of Resouce.Get("No.") ?
It is displaying the same Employee No. even if different resource is selected.
Send the screenshot of the code you have written
Business Applications communities