How do we handle ExtraTables? #25
Closed
PPetterssonSO
started this conversation in
General
Replies: 1 comment 4 replies
-
|
Hello @Nawksen, In the REST API you would use the DatabaseTableAgentto read/insert/update rows from an extraTable. Example: var temp = soApi.getDatabaseTableAgent();
var result = await temp.readRowAsync("y_dummy", 1); //First parameter is table name, the second is id to read. Similar to what you pass inn to the [REST API](https://docs.superoffice.com/en/api/netserver/web-services/howto/custom-objects/rest-get-custom-object-row.html?tabs=DatabaseTableAgent)
const obj = JSON.stringify(result, null, 2);
context.result.body = obj; |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I was expecting to find something like: soApi.getExtraTableAgent() or similar.
How can we create/load/update extratables?
Regards
Pär
Beta Was this translation helpful? Give feedback.
All reactions