Skip to main content

Notifications

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
    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
    12,837 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,208 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,970 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans