Skip to main content

Notifications

Announcements

No record found.

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

  • Sam D. Profile Picture
    Sam D. 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
    GirishS 27,821 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
    Komi Siabi 12,772 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans