Edit

Share via


JsonObject.WriteWithSecretsTo(Dictionary of [Text, SecretText], var SecretText) Method

Version: Available or changed with runtime version 15.1.

Replaces the placeholder values based on their paths with the provided secrets and then serializes and writes the content of the JsonObject to a SecretText.

Syntax

[Ok := ]  JsonObject.WriteWithSecretsTo(Secrets: Dictionary of [Text, SecretText], var Result: SecretText)

Parameters

JsonObject
 Type: JsonObject
An instance of the JsonObject data type.

Secrets
 Type: Dictionary of [Text, SecretText]
A mapping from paths in the JPath format to the secrets, which will replace the values in these paths.

Result
 Type: SecretText
The SecretText object to which the JSON data will be written.

Return Value

[Optional] Ok
 Type: Boolean
true if the write was successful; otherwise, false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

See Also

JsonObject data type
Getting started with AL
Developing extensions