Welcome to Zuora Product Documentation

Explore our rich library of product information

Configure Map as a processor

The Map processor in Zuora Mediation allows for the selective retention, renaming, dropping, or transformation of fields from usage events to normalize data formats and prepare fields for further processing.

The processor is commonly used to normalize data formats, reduce payload size, or prepare fields for downstream enrichment, filtering, or rating.

You can use the Map processor in the following instances:

  • To rename input fields to match your target schema.
  • To remove unnecessary or redundant fields.
  • To transform field values using simple JavaScript logic (e.g., uppercase conversion, numeric scaling).
  • To standardize incoming event structure before it reaches later pipeline steps.
  1. Navigate to Mediation > Meters
  2. Create a Custom meter.
  3. Select Map as the processor type.
    The settings page is displayed.
    Map processor settings
  4. Enter a Name for the processor.
  5. In the Map Fields page, configure the field mappings.
    Field Description
    Source Field Specify the name of the field from the incoming event payload that you want to process..
    Action Select Keep to retain or Drop to remove the field.
    Target Field Enter the name of the output field. Use this to rename the source field if needed.
    Transform Value (Optional) Enable this option to apply transformation logic to the field’s value using JavaScript.
    Target Field Value This field appears when Transform Value is enabled. Enter JavaScript code to modify the field value. You can also specify the data type (e.g., Text, Number ). Use value to reference the current field value.
  6. Click Save.