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, ...
Answered

Import Journal Movement with X++

(0) ShareShare
ReportReport
Posted on by 81

Hi, I have a Upload button in journals -> movement which I can upload csv data type. When I upload, the data all are insert to Journal movement header. 
What I want is when the csv data is uploaded, I get one header with one Journal number and all the data are insert to Journal movement lines of the journal number. Please help me.

I have the same question (0)
  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi,

    You can use something like this to create headers and lines.

    Please share your existing code here as well in case you want us to take a look at what logic you could implement

  • HelioBuenos Profile Picture
    81 on at

    Hi, after some struggling the link you share is really helpful!

    Thank you

  • HelioBuenos Profile Picture
    81 on at

    Now I have another problem. when I finish importing the csv data, my form do not get refresh  by itself. When I close the form then open it again, it will show the data that I import before.

  • Suggested answer
    Leo Chen Profile Picture
    Microsoft Employee on at

    You can put some form ds refresh code into your customized Upload button. eg _ds.research(); or _ds.executequery(). See below -

    mohsinkhalid.com/.../

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Assuming that you have the button in the journal header, you can call the following code

    inventJournalTrans_ds.reread();
    inventJournalTrans_ds.executeQuery();

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 March 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 653

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 298

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans