web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Importing general journals with AIF inbound port.

(0) ShareShare
ReportReport
Posted on by 471

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.

https://corbitech.com/2012/07/11/importing-gl-transaction-data-ax-2012-xpp-ledgergeneraljournalservice/

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);
Any suggestions on this would be of great help to me.
Thanks,
Verma M.
 
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    304,837 Super User 2026 Season 1 on at

    Hi Verma,

    You can set the account type on the journal line with the next command:

    journalLine1.parmAccountType(LedgerJournalACType::Cust);

    or

    journalLine1.parmAccountType(LedgerJournalACType::Vend);

    Not sure, but I thought you only have to set the parmDisplayValue method for the customer or vendor account. I might be wrong as I don't have an environment currently to check it.

  • VermaMC Profile Picture
    471 on at

    Thanks for the response, André.

    I tried what you said like below.

        journalLine2LedgerDimension = journalLine2.createLedgerDimension();
        journalLine2DimensionCollection = journalLine2LedgerDimension.createValues();
        journalLine2LedgerDimension.parmDisplayValue('xxxxxx');
        journalLine2LedgerDimension.parmValues(journalLine2DimensionCollection);
        journalLine2.parmLedgerDimension(journalLine2LedgerDimension);

    However it didn't work. It threw an error. "Data item Account does not exist".

    Please help if there is any other suggestions.

    Thanks,

    Verma

  • André Arnaud de Calavon Profile Picture
    304,837 Super User 2026 Season 1 on at

    Hi Verma,

    Did you try to use the other method or both of them providing the customer account number? Like mentioned, I can't verify it as I need a new environment myself.

  • VermaMC Profile Picture
    471 on at

    There is no parmDisplayValue method in LedgerGeneralJournal_LedgerJournalTrans class. So, I was not able to use JournalLIne2.parmDisplayValue('xxxx');

    Regards,

    Chiranjeevi.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 664

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 615 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 550

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans