Dynamics 365 Business Central 2023 Wave 2 release introduces a new data type called SecretText. This new data type can be used to protect secrets in AL code from being revealed through debugging. SecretText data type will be usable as a variable value, return value, and parameter value. The SecretText type encapsulates a Text type. If a Code or other text type is to be stored, it'll be converted into the Text type. Its usage is quite limited to handling secrets in AL code and doing Http calls with HttpClient. SecretText is not supported everywhere at the moment. You can start using this new data type in your extension code if you want to handle secrets in AL code and protect them from debugging.
Login now to access my digest by 365.Training