Send Purchase Orders to Vendor collaboration for Vendor Review in D365FO
Code snippet to send purchase orders for external vendor review (in Vendor collaboration module)
try
{
PurchTable purchTable = PurchTable::find(PurchId);
PurchFormLetter purchFormLetter = PurchFormLetter::construct(DocumentStatus::ConfirmationRequest);
purchFormLetter.update(purchTable, strFmt("Sent for vendor
review",purchTable.PurchId));
}
catch (Exception::Deadlock)
{
}
PurchTable purchTable = PurchTable::find(PurchId);
}
catch (Exception::Deadlock)
{
}