Announcements
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,353 Super User 2026 Season 1
YUN ZHU 1,808 Super User 2026 Season 1
AndrewThomas81 1,371