Edit

Share via


JsonObject.WriteWithSecretsTo(Text, SecretText, var SecretText) Method

Version: Available or changed with runtime version 15.1.

Replaces the placeholder value in the path with the secret and then serializes and writes the content of the JsonObject to a SecretText.

Syntax

[Ok := ]  JsonObject.WriteWithSecretsTo(Path: Text, Secret: SecretText, var Result: SecretText)

Parameters

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

Path
 Type: Text
The path to the placeholder value, which will be replaced by the secret, in a JPath format.

Secret
 Type: SecretText
The secret with which the placeholder value will be replaced.

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