v_table – Scoped, Global
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The v_table API provides methods to add rows to a remote table through a scriptable object.
This API requires the Remote Tables plugin (com.glide.script.vtable) to be activated. For additional information, see Retrieving external data using remote tables and scripts.
Use the v_query scriptable object to query remote tables.
v_table - addRow(Object row)
Adds rows to the remote table.
Name | Type | Description |
---|---|---|
row | Object | JavaScript object containing field name and value map in which the key is the
field name, for example, {number: "INC0001", sys_id:
"a34"} . |
row.<field value> | String | Represents the value of the selected field. Although no fields are mandatory,
provide the sys_id at a minimum. Example listing only sys_id field and value: |
Type | Description |
---|---|
Boolean | Flag that indicates whether the row was added to the remote table. Valid
values:
|
Example
The following example shows how to use the RESTMessageV2 API to create and execute the REST call to an external bank application. The script shows how to use the addRow() method to store return results in a remote table.