Sunday, April 6, 2025

Code to check whether any field has changed or not in d365f&o x++

 

PmfTableHasChanged this method is used to check wheather any field in a table has changed.

If any field value is changed in VendorStagingTable, this if condition satisfies and updates the status as unprocessed

if(pmfTableHasChanged(VendorStagingTable))

{

    VendorStagingTable.PROProcessingStatus = PROProcessingStatus::Unprocessed;

}

Thursday, April 3, 2025

Create ledgerdimesion from OrderAccount in D365f&o x++

LedgerDynamicAccountHelper::getDynamicAccountFromAccountNumber(VendorInvoiceStagingTable.VendAccount,LedgerJournalACType::Vend);