In this article we will be focusing on confirmation of a sales order using X++ code.
First we will see how do we confirm sales order from front end of Microsoft Finance and Operations and then we’ll jump over to do that process through X++ code.
I will list down the steps to do that sequentially.
Now we will see how to do that process through X++ code.
Use this given method below to confirm a sales order in X++ using SalesFormLetter class.
The parameter passed to this method is sales order id which needs to be confirmed.
public void salesOrderConfirm(SalesId _salesId)
{
SalesTable salesTable;
SalesFormLetter salesFormLetter;
salesTable = SalesTable::find(_salesId);
salesFormLetter = SalesFormLetter::construct(DocumentStatus::Confirmation);
salesFormLetter.update(salesTable, DateTimeUtil::getSystemDate(DateTimeUtil::getUserPreferredTimeZone()), SalesUpdate::All);
} Thank you for reading this article hope you find it useful.
Technical Consultant
References:
Microsoft Dynamics CRM is a powerful Customer Relationship Management (CRM) tool that helps businesses manage…
Today we will be going over the steps how to assign owner to specific Team…
Today we will be going over the steps how to set the value of a…
In this article we will see how we can create and post free text invoice…
In this article we will be focusing on confirmation of a purchase order using X++…
In this article we will see how we can create inventory ownership change journal using…