Notifications
Announcements
No record found.
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
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.
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.
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!
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader