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

DefaultDimension in d365 FO X++

 Navigate to PurchTable methods you can find with DefaultDimension this.DefaultDimension = this.mergeDimension(this.getDefaultDimension(),th...