@mbanq/core-sdk-js / commands / DeleteEntryFromDataTable
Function: DeleteEntryFromDataTable()
DeleteEntryFromDataTable(
params):Command<{params: {apptableid:number;datatable:string;datatableId:number; }; }, {clientId?:number;id:number;loanId?:number;officeId?:number;resourceId:number;savingsId?:number; }>
Defined in: src/commands/rest/dataTable.ts:296
Delete an entry from a data table
Use this API to delete an entry in the data table. You need to provide the unique identifier of the entry you wish to delete.
Behavior: A successful response indicates that the entry has been successfully deleted from the data table.
Parameters
params
The path parameters
apptableid
number = ...
The ID of the application table (defaults to 101 for client tables)
datatable
string = ...
The name of the data table from which to delete the entry
datatableId
number = ...
The unique identifier of the data table entry to delete
Returns
Command<{ params: { apptableid: number; datatable: string; datatableId: number; }; }, { clientId?: number; id: number; loanId?: number; officeId?: number; resourceId: number; savingsId?: number; }>
Command object that executes the API request and returns the deletion confirmation
Example
const command = DeleteEntryFromDataTable({
datatable: 'd_testdatatable',
apptableid: 101,
datatableId: 1651719413544
});
const result = await client.request(command);
console.log('Deleted entry ID:', result.id);
console.log('Resource ID:', result.resourceId);