Skip to content

@mbanq/core-sdk-js v0.50.0


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

Function: GetDataTableProductMappingById()

GetDataTableProductMappingById(id): Command<{ id: number; }, { datatableName: string; entity: string; id: number; productId: number; productName: string; }>

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

Get entity data table product mapping by ID

Use this API to retrieve the mapping between an entity table, a data table, and product by its unique identifier. This API fetches the specific mapping configuration for a given ID, allowing you to view the details of how an individual product is linked with its associated entity and data tables. This is useful for reviewing or verifying the configuration for a specific product's data management and business processes.

Parameters

id

number

The unique identifier of the entity data table product mapping to retrieve

Returns

Command<{ id: number; }, { datatableName: string; entity: string; id: number; productId: number; productName: string; }>

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

Example

typescript
const mapping = await client.request(GetDataTableProductMappingById(67));
console.log('Mapping ID:', mapping.id);
console.log('Entity:', mapping.entity);
console.log('Data Table:', mapping.datatableName);
console.log('Product ID:', mapping.productId);
console.log('Product Name:', mapping.productName);

Released under the MIT License.