Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
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 Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
i have to create a new field in custtrans and custtable during invoicing of sales order the field in custtable must be flown to custtrans that is customer transaction form .
One place you can do this is in the class CustVendVoucher or its customer override CustVoucher. These classes are where CustTrans records are created during invoice posting, under the map CustVendTrans. Check out CustVendVoucher\methods\initCustVendTrans().
CustTrans will have a reference back to custTable, so you can write a display method on CustTrans to get this field value from Custtable directly.
though, if you want to do this, you can modify the SalesInvoiceJournalPost > PostCustVend method.
Thanks and can u please tell me how to debug createcusttrans method in salesformletterinvoice class
If your business logic is running in CIL then disable it (Go to user options > development tab > Execute business logic in CIL (unmark it)
then put a break-point in the method and post a Sales invoice. this will hit the breakpoint.
alternatively you can use visual studio to debug the CIL code. refer the below link to know the various ways to debug AX code
thanks dude can you please tell me the procedure in ax 2009 plz...
in ax2009 i cant able to view the option you said executebusinesslogic in CIL under development tab
If you are working on AX 2009,
In the server configuration utility just check if the Enable breakpoints to debug X++ code running on this server option is enabled
Yep dude debug mode when breakpoint its already enabled but i cant able to debugg the particular method named createcusttrans but the new method in salesformletter invoice will get executed while debugging ....
in the CreateCustTrans method, write the following command before the line which you want to debug,
and see if you can debug now
Dude i tried that too but still debug not working for that method ..
Business Applications communities