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

Community site session details

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

The use of reread() for a table record.

(0) ShareShare
ReportReport
Posted on by 20

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? 

I have the same question (0)
  • GirishS Profile Picture
    27,825 Moderator on at
    RE: The use of reread() for a table record.

    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.

    https://community.dynamics.com/365/supply-chain-management/b/axvanyakashperuk/posts/tutorial-58-refresh-reread-research-executequery-which-one-to-use-63

    Thanks.

    Girish S.

  • Suggested answer
    Shawnsauve Profile Picture
    1,093 on at
    RE: The use of reread() for a table record.

    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.

  • Mohit Rampal Profile Picture
    12,563 Moderator on at
    RE: The use of reread() for a table record.

    Hi Jasman, There is lot of documentation on reread method shared on blogs, few suggested above. Is there anything specific you are looking for?

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: The use of reread() for a table record.

    Table methods doesn't have method reread. Only FormDatasource has method reread.

    Also, what do you mean by "table record common"?

    Thanks,

    Girish S.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    RE: The use of reread() for a table record.

    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.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 743

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 528 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans