Upload client data to a new table on server
Parameters:
Name | Type | Description |
---|---|---|
output |
object
|
table |
data |
array
|
if null, data from appEnv.state will be uploded. |
drop |
array
|
fields to drop from the output |
addon |
object
|
columns additional columns(useful for adding key fields) |
appEnv |
appEnv
|
app Environment from setup |
- returns status object
promise
Example
let r = await uploadData({caslib:...}, null, ['total], {version: 10}, appEnv)