Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.43 KB

database-selectlatestversion-method.md

File metadata and controls

40 lines (30 loc) · 1.43 KB
title description ms.author ms.date ms.topic author ms.reviewer
Database.SelectLatestVersion() Method
Forces the latest version of the database to be used.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

Database.SelectLatestVersion() Method

Version: Available or changed with runtime version 1.0.

Forces the latest version of the database to be used.

Syntax

 Database.SelectLatestVersion()

Note

This method can be invoked without specifying the data type name.

Remarks

This method makes sure that the data displayed is the most current data in the database. The method clears all non-locked records from the client cache, thereby ensuring that you read the most recent data. The method also clears the current client session's cache for the CaptionClassTranslate strings. The strings will then be reevaluated by the CaptionClassTranslate method trigger in codeunit 42.

Warning

Clearing the cache and reading data directly from the database adversely affects performance.

See Also

Database Data Type
Get Started with AL
Developing Extensions