Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Import the table using X++ code in ax2012

(0) ShareShare
ReportReport
Posted on by 140

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. 140 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,816 Super User 2024 Season 1 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,741 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans