Delete APIs
delete
Delete a record from the table. It can be made permanent or temporary. A delete flag is updated when it is handled as temporary.
DSApi.delete(className, id, permanent)
or
DSApi.delete(className, id, permanent, auditMsg)Parameters
className: the str name of the table
id: the record number as str
permanent: permanent or temporary. a boolean
auditMsg: any message as strSample Code
className = "shared.common.product"
permanent = True
id = "12"
res = DSApi.delete(className, id, permanent)Returns
deleteMany
Delete many records at a time. The list is provided which represents the record numbers.
Parameters
Sample Code
Returns
deleteByQuery
Delete a record (s) by executing a query.
Parameters
Sample Code
Returns
Last updated