get-default-attribute-column-mapping

Description

The get-default-attribute-column-mapping command retrieves the default mapping between database columns and profile fields for a specific table in a given datasource.

This command is typically used to prepare the payload for create-profile or update-profile.

Syntax

Windows

CliTool.bat get-default-attribute-column-mapping -d <dataSourceName> -t <tableName>

Linux

./CliTool.sh get-default-attribute-column-mapping -d <dataSourceName> -t <tableName>

Example

CliTool.bat get-default-attribute-column-mapping -d UnicaDetectDS -t CUSTOMER_PROFILE

Parameters

  • -d: datasource name
  • -t: table name

What to do with the output

Use the response as the base value for attributeColumnMappings in your create/update JSON payload.

Typically, you only need to edit:

  • attributeName
  • isKeyAttribute

Mapping Details

Database column side Profile mapping side
databaseColumn.name attributeName
databaseColumn.typeCode JDBC/SQL type code
databaseColumn.isPrimaryKey indicates source table PK
isKeyAttribute indicates whether the mapping is the Detect profile key

This mapping ensures that each database column is correctly associated with its corresponding profile field, enabling seamless integration and data consistency.