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 1 Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 Timeline
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 | Upcoming TechTalks
When creating a purchase order and trying to post and invoice it, an error is thrown if the mandatory dimension is left blank.
This is not the case when a purchase quote is to be made a post.
I would like to add the functionality of not allowing a user to make a post out of a purchase quote when dimensions are left blank.
From what i have found this functionality is present in the "Purch. -Post" codeunit (ID 90) and i need to add it to
"Purch-Quote to Order" codeunit (ID 96).
Could you please show me the way to achieve this?
You don't post a purchase quote, you just convert that to order and while posting it will check the dimensions. If you need to add that during conversion then you can call the function CheckDim from the Posting Codeunit in the codeunit 96
Thank you for the response! Yes i need to add that during conversion. Calling CheckDim in the OnRun of Codeunit 96 doesn't work for some reason. Conversion is proceeding without a problem. Any help is appreciated!
Send the screenshot how you calling it, call the function before CreatePurchHeader call
I had to change the scope of CheckDim to Global at Codeunit 90 in order to call it from codeunit 96. In debug mode it normally gets inside the function but it just gets through the 3 subfunctions inside CheckDim without throwing the error. Any ideas?
Thank you in advance.
It is because of the Temp Purchase Lines which are empty and while it is checking lines it uses Temp Global and also it will execute only when Qty. to Receive or Invoice is not equal to zero. I would suggest copying those functions into custom codeunit and remove that condition in CheckDimLines and also add your own function to copy to Temp.
Thank you for your help. I managed to do it. I used 'FillTempLines' from Codeunit 90 too as you mentioned. I completely removed the if statement in 'CheckDimLines' and everything is working.
Business Applications communities