Custom Table
Return, update and create entries in a custom table in the EXO Business database.
| URL | Supports |
|---|---|
{URI}/customtable | |
| {URI} is exo.api.myob.com when connecting to the cloud or the address of the machine hosting the API when connecting on premise. | |
Custom tables can be created in the EXO Configurator, or manually in SQL Server. If you are creating a custom table manually, it must include a primary key field; this field must be an integer, and should be named SEQNO. All other fields must be added as Extra Fields - again, this can be done manually or in the EXO Configurator.
The endpoint is called in the format customtable?table=X_TABLE&pk=FIELD, where X_TABLE is the name of the custom table and FIELD is the name of the table’s primary key field (this should be SEQNO).
To read or write to a specific record in the table, make a call to customtable/ID?table=X_TABLE&pk=FIELD Where ID is the ID code (usually the SEQNO) of the record.
A GET request on the customtable endpoint by itself returns a list of all custom tables.
The extrafields attribute is an array of Extra Field name/value pairs in the format:
{ "key": "NAME", "value": "VALUE" }
Where NAME is the name of the field and VALUE is the value being read from or written to it.
Attribute Details
| Attribute | Type | Notes |
|---|---|---|
extrafields | array | |
rel | string,null | |
title | string,null | |
id | integer | Required on PUT |
href | string,null |
Example json GET response
Example
[
{
"key": "STOCKCODE",
"value": "AIRFIL01"
},
{
"key": "STOCKGROUP",
"value": 0
},
{
"key": "X_KANBAN",
"value": "Y"
},
{
"key": "X_ORDCURRENCY",
"value": 199.99
},
{
"key": "X_ORDDATE",
"value": "2014-04-02"
},
{
"key": "X_ORDDEC",
"value": 99.99
},
{
"key": "X_ORDQTY",
"value": 100
},
{
"key": "X_ORDTEXT",
"value": "POST"
},
{
"key": "X_DROPDOWN",
"value": "Y"
},
{
"key": "X_DROPSELECT",
"value": 1
},
{
"key": "X_DROPSQL",
"value": "1"
},
{
"id": 1,
"href": "{URI}https://exo-stage.api.myob.com/customtable/1"
}
]{URI} is defined as: http://exo.api.myob.com/