Zoomed Image

AMSX Scripting Language - Command : applydatamapping

Summary

Apply a data mapping lookup to update a field in a temporary table

Description

Joins the specified table to the DataMapping table using an exact match and updates a target field with the mapped value. The mapping type is identified by name. An optional WHERE clause can restrict which rows are updated.

Parameters

ParameterDescription
cmdTable name to update
Argument 0Field in the table to update with the mapped value
Argument 1Source field name in the DataMapping table to match against (typically SourceValue1)
Argument 2Field in the table whose value is used for the lookup join
Argument 3Target field name in the DataMapping table that provides the replacement value (typically TargetValue1)
Argument 4DataMappingType name to scope the lookup
Argument 5Optional additional WHERE clause to restrict the rows updated

Syntax


ApplyDataMapping "Table name to update", "Field in the table to update with the mapped value", "Source field name in the DataMapping table to match against (typically SourceValue1)", "Field in the table whose value is used for the lookup join", "Target field name in the DataMapping table that provides the replacement value (typically TargetValue1)", "DataMappingType name to scope the lookup", "Optional additional WHERE clause to restrict the rows updated"

Return to the AMSX Command Reference