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(String className, String id, boolean permanent)
or
DSApi.delete(String className, String id, boolean permanent, String auditMsg)Parameters
className: the name of the table
id: the record number
permanent: permanent or temporary
auditMsg: any messageSample Code
String className = "shared.common.product";
boolean permanent = true;
String id = "12";
Object 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
Was this helpful?