none
UPDATE SALES QUOTATION TO "Sent" then sending e-mail through x++ [ms dynamics AX 2012] RRS feed

  • Question

  • Hi!
    I found how to change the status quote "Sent" but I wasn't found how to send it by e-mail.
    Are there any solutions please ??
    thank you.

    Mehdi.

    source code:
    public void updateStatusToConfirmOrSent(DocumentStatus _documentStatus, QuotationId quotationId)
    {
        SalesQuotationEditLinesForm     salesQuotationEditLinesForm;
        SalesQuotationTable             salesQuotationTable;
        ParmId                          parmId;
        select * from salesQuotationTable where salesQuotationTable.QuotationId == quotationId;
        if (! salesQuotationTable) return;

        salesQuotationEditLinesForm =
        SalesQuotationEditLinesForm::construct(_documentStatus); //DocumentStatus
        parmId                      = salesQuotationEditLinesForm.parmId();
        salesQuotationEditLinesForm.initParmSalesQuotationTable(salesQuotationTable);
        salesQuotationEditLinesForm.parmId(parmId);
        salesQuotationEditLinesForm.parmTransDate(systemdateget());
        salesQuotationEditLinesForm.prePromptInit();
        salesQuotationEditLinesForm.initParameters(NoYes::Yes, //printFormletter,
                                                   NoYes::No,//transferHours2Forecast,
                                                   NoYes::No,//transferExpenses2Forecast,
                                                   NoYes::No,//transferFees2Forecast,
                                                   NoYes::No,//transferItems2Forecast,
                                                   'reasonCode',//reasonCode,
                                                   NoYes::No);//usePrintManagement

        salesQuotationEditLinesForm.printerSettingsFormletter();

        salesQuotationEditLinesForm.run();
    }

    jeudi 8 décembre 2016 09:29