Hello,
I could not find any documentation for the function of the method reread() for a table record common. Can someone please help to explain this please?
Yes we can call reread() at table level as well. As everyone said it will refresh that particular table buffer so that we can have latest data. We will call this table level method mostly in reports with huge data.
Table methods doesn't have method reread. Only FormDatasource has method reread.
Also, what do you mean by "table record common"?
Thanks,
Girish S.
Hi Jasman, There is lot of documentation on reread method shared on blogs, few suggested above. Is there anything specific you are looking for?
The reread() method in Dynamics 365 Finance and Operations is a table record method that retrieves the latest data for the current record from the database.
When you retrieve a record using the table and tableBuffer methods, you get a copy of the data that is stored in the buffer. The buffer contains a snapshot of the data from the database at the time the record was first retrieved.
If another user or process updates the record in the database while the record is still in the buffer, the buffer will contain outdated data. To ensure that you are working with the latest data from the database, you can use the reread() method to refresh the buffer with the current data from the database.
When you call the reread() method, the system will issue a SQL SELECT statement to retrieve the current version of the record from the database. The buffer will then be updated with the new data.
It's important to note that calling the reread() method will discard any changes made to the record in the buffer since it was first retrieved. Therefore, it's best practice to call the reread() method before making any updates to the record, to ensure that you are working with the latest data.
Hi Jasman,
This method can be called to update a latest changes from the database.
Refer to the below Microsoft documentation.
https://learn.microsoft.com/en-us/dotnet/api/dynamics.ax.application.formdatasource.reread
Also refer to the below blog.
Thanks.
Girish S.
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156