Get Sales Quotation by Customer ID in X++ | Dynamics 365 FO Development
Creating a Sales Quotation using X++ code in Dynamics 365 Finance and Operations involves several steps. Below is an example of how you might achieve this. Please note that you may need to adapt the code to fit your specific requirements and the structure of your solution. Please replace _custAccountId, _currencyCode, _itemId, and _qty with your actual values. AxSalesQuotationTable AxSalesQttable; AxSalesQuotationLine AxSalesQtline; AxSalesQttable = new AxSalesQuotationTable(); AxSalesQttable.parmCustAccount(_custAccountId); AxSalesQttable.parmCurrencyCode(_currencyCode); AxSalesQttable.save(); AxSalesQtline = new AxSalesQuotationLine(); AxSalesQtline.axSalesQuotationTable(AxSalesQttable); AxSalesQtline.parmQuotationId(AxSalesQttable.parmQuotationId()); AxSalesQtline.parmItemId(_itemId); AxSalesQtline.parmSalesQty(_qty); AxSalesQtline.parmcurrencyCode(_currencyCode); AxSalesQtline.save(); This is a bas...