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
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Facing strange issue during creating benefit plan from outside(using insert code). Total number of rows inserted properly with data but unable to view data on forms. its shows display unknown values in every fields. I have perform every possible solution to fix it but in vain.
While adding from button its add perfect. It will be appreciated if anyone can share solution with me.
My code is ....
public void createBenifitPlan(RefRecId _worker, StartDateTime _startDateTime, EndDateTime _endDateTime, Amount _amount)
hcmWorkerEnrolledBenefit.Worker = _worker;
hcmWorkerEnrolledBenefit.Benefit = 5637146078;//5637144580;
hcmWorkerEnrolledBenefit.ValidFrom = _startDateTime;
hcmWorkerEnrolledBenefit.ValidTo = _endDateTime;
payrollWorkerEnrolledBenefitDetail.WorkerEnrolledBenefit = hcmWorkerEnrolledBenefit.RecId;
payrollWorkerEnrolledBenefitDetail.LegalEntity = CompanyInfo::current(curExt());
payrollWorkerEnrolledBenefitDetail.DeductionAmountCur = _amount;
PayrollWorkerEnrolledBenefitDetail.DeductionRateSource = PayrollBenefitRateSource::Custom;
payrollWorkerEnrolledBenefitDetail.DeductionBasis = PayrollDeductionBasis::FixedAmount;
payrollWorkerEnrolledBenefitDetail.ValidFrom = DateTimeUtil::date(_startDateTime);
payrollWorkerEnrolledBenefitDetail.ValidTo = DateTimeUtil::date(_endDateTime);
Generally if you find issues when inserting data in code, you should always use the table browser to compare records that were created from the user interface, and records that you created in code. Most likely you will see some difference, and can then adjust your code accordingly.
For this specific case, it seems you might no need to add a third table to make it work: https://community.dynamics.com/ax/f/33/t/258027
Try to synchronise table and restart AOS.
No effected same issue exist.
What exactly did you try? Several things were suggested.
Nikolaos, I have followed your provided link community.dynamics.com/.../258027
Did you compare the records in table browser, so that you will find the difference between your x++ created records and those that are created from UI? Did you find any difference? Maybe you could share your current code, and screenshots of the table browser?
Business Applications communities