Function Reference > System variables > CurrentMappingName
  

CurrentMappingName

Returns the name of the mapping that the task is based on as a string value. Use CurrentMappingName with any function that accepts string datatypes.
Data Integration resolves CurrentMappingName when you run a task. It does not resolve CurrentMappingName when you test run a mapping. If you want to run a mapping and return the current mapping name, use CurrentTaskName.