Skip to content

@mbanq/core-sdk-js v0.50.0


@mbanq/core-sdk-js / commands / GetDataTableProductMappingTemplate

Function: GetDataTableProductMappingTemplate()

GetDataTableProductMappingTemplate(params?): Command<{ params: { apptable?: string; }; }, { pageItems: object[]; totalFilteredRecords: number; }>

Defined in: src/commands/rest/dataTable.ts:355

Get template for entity data table product mapping

Use this API to get the template for the Entity Data Table Product Mapping. This retrieves available entities, data tables, and products that can be mapped together.

Parameters

params?

The query parameters (optional)

apptable?

string = ...

Optional parameter to filter the template by application table name (e.g., 'm_client')

Returns

Command<{ params: { apptable?: string; }; }, { pageItems: object[]; totalFilteredRecords: number; }>

Command object that executes the API request and returns the mapping template

Example

typescript
// Get all available mappings
const template = await client.request(GetDataTableProductMappingTemplate({}));
console.log('Total records:', template.totalFilteredRecords);
console.log('Mappings:', template.pageItems);

// Filter by application table
const loanMappings = await client.request(GetDataTableProductMappingTemplate({
  apptable: 'm_loan'
}));
// Returns mappings like:
// {
//   totalFilteredRecords: 6,
//   pageItems: [
//     { id: 34, entity: 'm_loan', datatableName: 'd_underwriting_details', productId: 0, productName: 'All' },
//     ...
//   ]
// }

Released under the MIT License.