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)
            {
            }

Popular posts from this blog

Remove Prefix from a String in D365FO

Odata Patch operation using Postman