Share via


Use SecretText with control add-ins and in JSON objects

Enabled for Public preview General availability
Admins, makers, marketers, or analysts, automatically May 2, 2025 May 2, 2025

Business value

You can now use SecretText with control add-ins and JSON objects. With this capability, AL developers can integrate credentials with JavaScript-based authentication solutions and embed secrets when working with JSON objects.

Feature details

Pass SecretText value to control add-ins

You can now pass a SecretText value to control add-in procedures. With this feature, you can integrate credentials with JavaScript-based authentication solutions.

New method to add SecretText values to JSON objects - WriteWithSecretsTo

We added a new method to the JsonObject type that you use to add SecretText values. To use this method, you create a JSON object with placeholder values for your secret values. Then, you provide the paths to the values in JPath format, along with the values. The method returns a new SecretText value with the credentials replaced.

Example of using SecretText in JsonObject

Geographic areas

Visit the Explore Feature Geography report for Microsoft Azure areas where this feature is planned or available.

Language availability

Visit the Explore Feature Language report for information on this feature's availability.

Tell us what you think

Help us improve Dynamics 365 Business Central by discussing ideas, providing suggestions, and giving feedback. Use the forum at https://aka.ms/bcideas.

Additional resources

JsonObject Data type (docs)