Microsoft introduced a new data type called SecretText in the Dynamics 365 Business Central 2023 Wave 2 release. This data type is useful for protecting secrets in AL code during debugging. However, the SecretText data type cannot be used for storing secrets in the Isolated Storage natively. Currently, the Isolated Storage module only supports Text parameters. Microsoft plans to add full support for SecretText in Isolated Storage methods in the Dynamics 365 Business Central version 24 release. In the meantime, there are limitations on handling SecretText objects in the Isolated Storage. You can read a value from Isolated Storage as SecretText by creating a NonDebuggable procedure, but writing a SecretText variable in the Isolated Storage is not currently possible.
Login now to access my digest by 365.Training