Hi all,
I am working on AX 2012. We have a inbound port which is used for importing journal from a third party tool through .net framework. There is a integration issue with one off the field and to test it, I wrote a job to consume the services of the inbound port which is similar to the below link.
It is working fine. However, I needed to test it with account type cust or Vend and I don't how to pass the customer account in the below code snippet which handles ledgerdimension field.
journalLine1LedgerDimension = journalLine1.createLedgerDimension();
journalLine1LedgerDimension.parmAccount(line1MainAccount);
journalLine1LedgerDimension.parmDisplayValue(line1FullAccount);
journalLine1.parmLedgerDimension(journalLine1LedgerDimension);