Skip to main content

Copy Conditional

The Copy Conditional mapping works similarly to SimpleMapping (Text/Copy), but it adds additional conditions to control when the copy should occur. This allows for more precise data handling based on specific conditions in the message.

Conditions Supported

  • Exists: If the specified field exists in the message, the copy will be performed. If not, nothing happens.
  • Does not exist: The copy is performed only if the specified field is not part of the message.
  • Not seen before: The copy will occur only if the value of the field in the message has never been seen before, or it has not been seen within the configured retention period. This condition helps avoid processing the same data multiple times.
  • Increased: The copy happens if the value of the specified field (usually a timestamp or relative ID) is greater than the last value. The comparison is made between the field and its last recorded value within the same record. The record ID is defined in the "exists" condition.
note

The "Not seen before" condition is particularly useful for filtering out updates that have already been processed, ensuring that only new data is copied.