rbf_getRelatedIds2()
Purpose
For objects in dedicated tables or external objects (such as those mapped to external tables, to OpenEdge Service objects, or through a HDP connection), this function retrieves the ids of records related to a selected Platform record.
The current user must have View permission on the selected object type to run this API.
Note: For native Platform objects, you can use the method, rbf_getRelatedIds().
Syntax
rbf_getRelatedIds2(relName, objName, id,
callback, useLegacyDateFormat)
Parameters
relName
Integration name of selected Relationship definition
objName
The integration name of selected Object definition
id
ID of selected Object record
callback
A callback function that will receive parameters: relName,
id, an array of related ids.
useLegacyDateFormat
This optional parameter only applies to JSON output and, specifically, to Date and Date/Time fields. If
Note: This API is supported in portals as well.
Example
function my_callback(relName, objId, values) {
for (var i=0; i<values.length; i++) {
var amount = values[i];
// Do something...
}
}
rbf_getRelatedIds2("R12345", "obj1", id, my_callback);