Articles in this section

Mapper 2.0

Mapper 2.0 provides a clear visual representation of both source and destination JSON structures, enabling you to reference sample input data from the source app while building the JSON structure to be sent to a destination app. You can easily build complex JSON structures that include nested arrays and make use of data type validation for required fields and incompatible data types. Mapper 2.0 is available for HTTP and REST API-based imports, as well as file transfer imports like FTP, AS2, and Google Drive.

9949934286107-mapper2.0Land.png

Mapper 2.0 functionality

The Mapper 2.0 interface has four general components:

  • Mapper 2.0 toolbar: Navigate data structures and limit the displayed fields to only those that you are currently working with.

  • Mapper 2.0 field mappings: Modify settings to particular field mappings.

  • Input and Source format (upper right): The full sample data from your source application and identifies the record or row JSON structure type.

SourceInput.png
  • Output and Destination format (lower right): The destination JSON structure you are building and identifies the record or row JSON structure type.

OutputDest.png

Mapper 2.0 toolbar

mapper2Toolbar.png
  1. Edit Mapping: <flow step name>: The name of the import flow step that has your mapping configuration applied.

  2. Mapper 2.0 toggle: Allows you to switch between Mapper 1.0 and Mapper 2.0.

  3. Destination record or row format selector: This drop-down list allows you to define the destination JSON structure opening and closing characters as records {} or rows [].

  4. Refresh fields: Refresh the source fields available for mapping. Click refresh (refresh.svg) to display recent changes to your source sample data when mapping fields.

  5. Expand all fields: Displays all fields with all subfields expanded.

  6. Collapse all fields: Displays only top-level fields with all subfields collapsed.

  7. Filter by required or mapped fields: Click the filter (filterNone.svg​​ ​)

FilterAllFields.png
  • Search destination field names: Click the magnifying glass (search.svg) to open search mode to find destination fields by name. Mapper 2.0 displays and highlights only destination fields with names that match your search criteria. Adding a new row while in search mode closes search mode.

searchFieldNames.png

Note

Empty destination fields will also display in search mode.

  • Auto-populate destination fields or Remove all mappings: If you are mapping fields from an HTTP/REST-based connector or using a file transfer import with sample file configured, click Auto-populate destination fields to automatically generate the destination JSON structure with the destination app's expected field names. You can then map each JSON element to its corresponding source field. Click Remove all mappings if you decide to start over. It will remove all the non-required destination fields from the mappings.

mapper2.0autopopAndRemoveAllMappings.png

Mapper 2.0 field mappings

mapper2FieldSettings.png
  1. Drag-and-drop row handle: Click and hold (drag-and-drop.svg)

  2. Destination field: Enter the name of the destination field you want to build. You can save a destination field without having mapped it to a source field.

  3. Destination field data type: Select the data type of the destination field you want to build.

  4. Source field: The source field accepts the following values:

    Note

    You can't save a source field without having mapped it to a destination field. However, you can save a destination field without mapping it to a source field.

    • The JSON path to the source field: $.user.location

    • A hard-coded value in double-quotes: "testValue". The row displays an circledH.svg next to the source field when the value is interpreted as hard-coded. Hard-coded values must use double-quotes; otherwise, they will be treated as expression values. You can't use hard-coded values for object or [object] data types.

      hardCoddedSourceField.png
    • A {{handlebars}} expression. Any value that is not in JSONPath notation or hard-coded (surrounded in double-quotes) is interpreted as an expression. The row displays an circledE.svg next to the source field when the value is interpreted as an expression.

      expressionSourceField.png
    • A dynamic lookup . The row displays a circledDL.svg next to a source linked to a dynamic lookup.

      DynamicLookupDL.png
    • A static lookup . The row displays an circledSL.svg​​ next to a source linked to a static lookup.

      staticLookupSL.png
  1. Source field data type: Select the data type of the source field.

  2. Source field selector: Select the source field you want to use to populate the destination field. Your selection is represented in JSONPath syntax. Begin typing the name of the field to filter the list by field name.

sourceFieldSelector.png
  1. Destination field settings: Click the Settings (settings_gear.svg) button to configure field settings. The options available change depending on the destination field data type you have selected.

  2. Add row: Add a new row to the current hierarchy level of the destination JSON structure.

  3. Delete row: Click the garbage can ( trash.svg) to delete the row. This option only displays on hover over the row.

Switch to Mapper 2.0

Click the mappings (mapping.svg) button on an import flow step to open Mapper 2.0.

Click the switch to change your view between Mapper 1.0 and Mapper 2.0.

mapperToggle.png

Consider the following when switching between Mapper 1.0 and Mapper 2.0

  • Mapper 2.0 is the default for new mappings or imports that do not yet have any mappings saved.

  • Imports that have mapping configurations only in Mapper 1.0 will open in the Mapper 1.0 interface.

  • Imports that have any mapping configurations in Mapper 2.0 will open in the Mapper 2.0 interface (even if Mapper 1.0 contains mapped fields).

  • If you have mapping configurations entered in both Mapper 1.0 and Mapper 2.0, when you click Save all mappings configured in either version are saved. However, the flow will use only the mappings configured in Mapper 2.0 when the flow runs.

  • To use any mappings you create using Mapper 1.0, you must:

    1. Delete all mappings from the Mapper 2.0 interface.

    2. Verify that the record or row structure is set to Create destination record {} from source record {}/[].

    3. Delete all empty lines from Mapper 2.0.

For instructions on mapping fields with Mapper 1.0, see Map source record fields to destination.

Set record or row structure

Click Create destination record {}/[] from source record {}/[] to set the record or row structure to send to the destination API.

recordInput.png

integrator.io automatically recognizes the record or row structure of your source data.

rowInput.png

The following examples demonstrate how record or row structures change the output data.

Filter by required fields

When working with data structures that contain hundreds of fields it can become difficult for you to find all required fields throughout your destination data structure. If you used Auto-populate destination fields to generate your destination fields, click the filter (filterNone.svg​​ ​), check Required fields, and click Apply to display only required fields.

RequiredFilter.png
  • A padlock ( padlock.svg) displays next to all required fields.

  • You can’t modify existing mappings or add new fields in filter view.

  • Set the filter to All fields to modify mappings or add new fields.

Filter by mapped fields

When working with data structures that contain hundreds of fields it can become difficult for you to find all destination fields that have already been mapped to their source field counterparts. If you used Auto-populate destination fields to generate your destination fields, click the filter (filterNone.svg​​ ​), check Mapped fields, and click Apply to display only mapped fields.

MappedFilterpng.png
  • A padlock ( padlock.svg) displays next to all required fields.

  • You can’t modify existing mappings or add new fields in the filter view.

  • Set the filter to All fields to modify mappings or add new fields.

Auto-map destination fields

When you configure mappings, you need not provide prompts. In Mapper 2.0, after the destination fields are populated, you can select one or more fields and click Auto_transform.jpg to auto-map the destination fields.

You can either choose to auto-map all fields, a single specific field, or multiple specific fields. When you select a parent-level field, all the fields below that parent are automatically selected. Auto-map doesn’t overwrite the mapping values that already exist or are entered manually. After you select the fields, click Auto-map selected destination fields. For more information, see Auto-map destination fields using Celigo AI.

Auto_map_destination_fields.jpg

It auto-maps all selected un-mapped destination fields, that is the ones that do not have the source field added. When auto-map is clicked, all options that modify the existing destination structure will be disabled. Close auto-map to go back to mappings.

Note

The option is enabled only when you add new mappings/fields. After the fields are mapped, the auto-map destination fields option is disabled.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.