Note The "authToken" property identifies the current session.
- This action can be used to troubleshoot issues with transactions, such as an application creating multiple sessions and accidentally using the wrong transaction ID with the wrong session.
- This action does not support pagination because the number of active transactions in a session is unlikely to grow larger than a few transactions.
- If the logged-in account has administrative privileges, "listTransactions" returns all transactions.
- The list can be filtered by the "username" property to include transactions only from specific sessions.
Request examples
Minimal
{
"action": "listTransactions",
"authToken": "replaceWithAuthTokenFromCreateSession"
}Maximal
{
"api": "db",
"action": "listTransactions",
"params": {},
"responseOptions": {
"binaryFormat": "hex",
"dataFormat": "objects",
"numberFormat": "string",
"includeFields": [],
"excludeFields": []
},
"apiVersion": "1.0",
"requestId": "2",
"debug": "max",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Success
{
"result": {
"dataFormat": "objects",
"fields": [
{
"name": "authToken",
"type": "varchar",
"length": 64,
"scale": null,
"defaultValue": null,
"nullable": false,
"primaryKey": 0,
"autoValue": "none"
},
{
"name": "username",
"type": "varchar",
"length": 64,
"scale": null,
"defaultValue": null,
"nullable": false,
"primaryKey": 0,
"autoValue": "none"
},
{
"name": "transactionId",
"type": "varchar",
"length": 64,
"scale": null,
"defaultValue": null,
"nullable": false,
"primaryKey": 0,
"autoValue": "none"
},
{
"name": "transactionDescription",
"type": "varchar",
"length": 255,
"scale": null,
"defaultValue": null,
"nullable": false,
"primaryKey": 0,
"autoValue": "none"
}
],
"data": [
{
"transactionDescription": "",
"transactionId": "transactionId1",
"username": "ADMIN",
"authToken": "replaceWithAuthTokenFromCreateSession"
},
{
"transactionDescription": "user supplied description of a transaction",
"transactionId": "transactionId12",
"username": "ADMIN",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
]
},
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}Maximal
{
"authToken": "replaceWithAuthTokenFromCreateSession",
"result": {
"dataFormat": "objects",
"fields": [
{
"name": "authToken",
"type": "varchar",
"length": 64,
"scale": null,
"defaultValue": null,
"nullable": false,
"primaryKey": 0,
"autoValue": "none"
},
{
"name": "username",
"type": "varchar",
"length": 64,
"scale": null,
"defaultValue": null,
"nullable": false,
"primaryKey": 0,
"autoValue": "none"
},
{
"name": "transactionId",
"type": "varchar",
"length": 64,
"scale": null,
"defaultValue": null,
"nullable": false,
"primaryKey": 0,
"autoValue": "none"
},
{
"name": "transactionDescription",
"type": "varchar",
"length": 255,
"scale": null,
"defaultValue": null,
"nullable": false,
"primaryKey": 0,
"autoValue": "none"
}
],
"data": []
},
"requestId": "00000005",
"debugInfo": {
"request": {
"authToken": "replaceWithAuthTokenFromCreateSession",
"api": "db",
"action": "listTransactions",
"params": {},
"apiVersion": "1.0",
"requestId": "00000005",
"responseOptions": {
"binaryFormat": "hex",
"dataFormat": "objects",
"numberFormat": "string",
"includeFields": [],
"excludeFields": []
},
"debug": "max"
},
"serverSuppliedValues": {
"databaseName": null,
"ownerName": null
},
"errorData": {
"errorData": null
},
"warnings": []
},
"errorCode": 0,
"errorMessage": ""
}
Response properties ("result")
| Property | Description | Default | Type |
|---|---|---|---|
dataFormat |
The
|
string |
|
fields |
The
"fields": [
{
"autoValue": "none",
"name": "name",
"type": "varchar",
"length": 50,
"scale": null,
"defaultValue": null,
"nullable": false, |
array |
updateRecords and deleteRecords only:
|
|
fields .name |
The The The |
string | 1 to 64 bytes |
|
fields .type |
The "type" property specifies the field's data type. See Data types for the limits, valid values, and whether "length" and "scale" are required. |
string |
|
|
fields .length |
The "length" property identifies the length of the field. |
integer |
1 to 65500 |
|
fields .scale |
The The value of A scale of The You may optionally use the |
integer |
0 to 32
|
|
fields .defaultValue |
The "defaultValue" property specifies the field's default value. |
string | 0 to 65,500 bytes |
|
fields .nullable |
The "nullable" property identifies whether a field can contain a NULL value. |
Boolean |
|
|
fields .primaryKey |
The |
integer |
0 to 32
|
data |
The |
array of objects | The action determines its contents. |