Wednesday, 2 March 2022

Update vendor status to No in D365 F&O

vendTable.reread();

if (vendTable.Blocked != CustVendorBlocked::No)

{

VendTable::updateOnHold([vendTable], CustVendorBlocked::No, utcDateTimeNull(), false);

VendTableChangeProposal change = VendTableChangeProposal::findByVendRecId(vendTable.RecId, false);

if (change)

{

change.delete();

}

}

No comments:

Post a Comment

Creating new D365FO Business Event

  The name should include the noun or phrase that corresponds with theevent, followed by the BusinessEvent suffix. New business event for Cu...