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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Copying Data from Tmp Table to Another Tmp Table

(0) ShareShare
ReportReport
Posted on by 195

Hi All,

Is it possible to copy data from one tmp table to another tmp table? I want to copy data while report runs.

Any code will be highly appreciated.

Thanks.

Regards,

Ali Sajjad

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    It is possible. The code would be exactly the same than when copying between normal tables. Do you know how to do that? You need to iterate the records in the source table, then copy the data and insert into the target table.

  • Ali Sajjad Profile Picture
    195 on at

    I've done the same. What I found was buf2buf() method which copies data to another table without system fields. But what happened was the report crashed as I used it. That's why I used that record by record iteration for population.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You can use buf2buf only if you copy to the same table (but another buffer). If you want to copy to another table it will not work.

    Do you still have some open question? If not, please mark the helpful answer(s) as verified. Thanks!

  • WillWU Profile Picture
    22,361 on at

    Hi Ali,

    Here is a link about copying table records:https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/227290/copying-table-records-to-duplicate-table-date-buf2buf.

    In your case,I think the method 'insert_recordset' is much more suitable to you.

    pastedimage1570701075257v1.png

    Best Regards,

    Will

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans