Today I had a requirement to automatically set the MarkupGroup at the moment a user creates a new Sales Quote in AX.
In the past the user would have had to do this manually but with the following changes in my code this happens in the background.
The place where we want to change this is in the salesQuotationTable.writeCreateQuotation Method. This method can be accessed from:
SalesCreateQuotation Form > DataSources > SalesQuotationTable > Methods > Write
The code is as follows: