Wednesday, June 30, 2021

Get Customer\Vendor account from LedgerDimension in D365FO using X++

 Get Customer\Vendor account from LedgerDimension in D365FO using X++.

Here is the simple code to get the customer\Vendor account number from the ledger Dimension.

if (LedgerJournalTrans.AccountType == LedgerJournalACType::vend)
{

VenAccount  VendAccount = LedgerDynamicAccountHelper::getAccountNumberFromDynamicAccount(LedgerDimension);

}

Keep Daxing!!

No comments:

Post a Comment