Skip to main content

Notifications

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? 

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 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.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 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?

  • Suggested answer
    Shawnsauve Profile Picture
    Shawnsauve 1,091 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.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans