Zoomed Image

AMSX Scripting Language - Command : applydatamappinglike

Summary

Apply a data mapping to a table using LIKE pattern matching

Description

Updates rows in a table by joining to the DataMapping table using a SQL LIKE match. The source field value in the table is compared against the mapping pattern field using LIKE, and the target field is updated with the mapped value. Use this when data mapping source values contain wildcards (e.g. "HP*").

Parameters

ParameterDescription
cmdTable name to update
Argument 0Column in the table to update with the mapped value
Argument 1Column in DataMapping to use as the LIKE pattern (e.g. SourceValue1)
Argument 2Column in the table whose value is matched against the pattern
Argument 3Column in DataMapping holding the replacement value (e.g. TargetValue1)
Argument 4DataMappingType name to filter by
Argument 5Optional extra WHERE clause to restrict which rows are updated

Syntax


ApplyDataMappingLike "Table name to update", "Column in the table to update with the mapped value", "Column in DataMapping to use as the LIKE pattern (e.g. SourceValue1)", "Column in the table whose value is matched against the pattern", "Column in DataMapping holding the replacement value (e.g. TargetValue1)", "DataMappingType name to filter by", "Optional extra WHERE clause to restrict which rows are updated"

Return to the AMSX Command Reference