Syntax

AddRecord(name, record)

Description

Use this method to add a Record object to the JSON Object.

Parameters

Name Description
name Specifies the name of the record that needs to be added as a string.
record Specifies the record to add to the JSON Object as a Record object.

Returns

None.

Example

Local Record &rPsOptions = CreateRecord(Record.PSOPTIONS);
&rPsOptions.SelectByKey();
   
Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddRecord("PSOPTIONS", &rPsOptions);