Announcements
No record found.
Create a setup field and set ExtendedDatatype = Masked. This ensures the user can enter the value, but cannot read it afterward.
field(7; "Client Secret"; Text[2048]) { Caption = 'Client Secret'; ExtendedDatatype = Masked; ToolTip = 'Azure AD Client Secret.'; }
procedure GetSecretKey() var SecretKey: SecretText; begin SecretKey := SecretText.SecretStrSubstNo(Setup."Secret Key"); end;
The advantage of SecretText is:
Hi, good day I hope this can help you, and give you some hints.
Securely Storing Secrets in Business Central Using Isolated Storage - Fredborg
Best Regards Gerardo
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,926 Super User 2026 Season 1
YUN ZHU 1,158 Super User 2026 Season 1
Khushbu Rajvi. 533 Super User 2026 Season 1