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

Community site session details

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

Import the table using X++ code in ax2012

(0) ShareShare
ReportReport
Posted on by 150

Hi,

I have to import the record of LedgerJournalTable table uisng X++ code in ax2012. I refer this blog to import https://www.cloudfronts.com/blog/dynamics-ax/x-code-to-import-data-from-excel-to-d365-fno/ , but through this log I import only those fields which have records ,but those field contains the recid of another table , i am not able to understand how i can import it using x++ code in ax2012.

I attached a screenshot where i import the fields of LedgerjournalTable , but when i have to import the OFFSETLEDGERDIMENSION , it contains the recid of DimensionAttributeValueCombination.RecId, so how can import those fields those contains RECID using X++ code in ax2012

I have the same question (0)
  • Sam D. Profile Picture
    150 on at
    RE: Import the table using X++ code in ax2012

    Hi Girish S.

    Thank you for this blog, but I'm facing a problem because i have two ax2012 machine , i have to import all vendor invoice journal (open and posted both) from one ax2012 machine to second ax2012 machine.

    so, in this case recid will be changed if we will import,

    I have seen your blog it is good to used, but still i am not getting correct data of those fields who contains the recid , (Ledger dimension, OffsetDefaultDimension , OffsetLedgerDimension).

    Can you please help me that what should i do ?

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: Import the table using X++ code in ax2012

    Hi Sam,

    Refer to the below link for importing offset Ledger dimension from excel data. As per the link you need to get the account id and based on that you will get offset ledger dimension using DimensionStorage::getDynamicAccount class.

    https://dhruvrthakar.blogspot.com/2017/10/how-to-createimport-general-ledger.html

    Thanks,

    Girish S.

  • Komi Siabi Profile Picture
    13,019 Most Valuable Professional on at
    RE: Import the table using X++ code in ax2012

    You can use this link to get the main account and other dimensions if exist.

    erpdax.wordpress.com/.../

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 665 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 595 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 558

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans