rbv_api.getRecord()

Purpose

Retrieves all field data (including formulas) for a given record in JSON format whose id is passed.

Note: For objects in dedicated tables or external objects (such as those mapped to external tables, to OpenEdge Service objects, or through a HDP connection), you can use the method, rbv_api.getRecord2().

Syntax

rbv_api.getRecord(id);

Parameters

id

A long value containing the record ID.

Return value

A JSON object.

Permissions Required

View permission for the requested object type.

Example

var data = rbv_api.getRecord(236);

rbv_api.println(data["name"]);