Generate post sales order confirmation from X++
SalesTable salesTable = SalesTable::find(“000747”);
SalesFormLetter salesFormLetter;
salesFormLetter = SalesFormLetter::construct(DocumentStatus::Confirmation);
salesFormLetter.update(salesTable, systemDateGet(), SalesUpdate::All);