Add Product Connections

Products linked to suppliers may have specific Option ID codes to pull unique product rates and availability. The setup and configuration of Product Connections will depend on the contracts you have with the External Suppliers.

There are two methods to configuring product Connections:

  • the first is a unique External Option ID assigned to specific products

  • the second is a setting to allow 'All Options'

Adding a Product Connection

  1. The changes made to the External Option ID field now displays in the Additional tab, Configuration field.

 

About Insert Product Connection Fields

Mapping Tab

This tab contains commonly used fields for product mapping.

External Service

A dropdown selection displays a list of configured connections attached to the Supplier. The connections available are unique to your organisation and will depend on the adapters configured for your system.

External Option ID

If the product has a unique Option ID. Enter the Option ID Code.

All Options

If the connection is to return 'All Options', select the checkbox. This will disable the External Option ID field and trigger a Match ID element in the XML configuration.

Additional Tab

This tab stores the XML mapping for the product either the Option ID or a Match (All) ID.

Configuration

XML elements are automatically generated from the Mapping tab fields. Click on the link Editing XML Elements for more information.

The configuration text is editable, changes made to the Option ID Tag will automatically update the field entry in both the Mapping tab and the Additional tab configuration and vice versa. If All Options was selected the configuration tab will display an XML element called MatchID.

 

Editing Product Connections

Organisations can edit Product connections if the Option ID has changed or needs to be removed.

Editing a Product Connection

  1. Open the Connection to Edit.
  2. The changes made to the Option ID field now displays in the Additional tab, Configuration field.

Adding XML Elements

Once a connection is created it can be edited. The contract you have with the supplier determines the level of targeted data elements required to refine and improve the request. Refer to the Setup and mapping article available in our Knowledge Base for more information on mapping elements.

Editing XML Elements

  1. Open the Connection to Edit.
  2. NOTE: If an error message displays, fix the XML formatting, and re-save.

  3. Changes made to the Option ID Tag will automatically update the field entry in the Mapping tab.

Identifying Errors in XML Code

Tourplan validates the XML code when Save is selected. Validation of XML formatting ensures that the XML code adheres to a defined structure and rules. Below is a brief overview of XML formatting:

  • Open and Close Tags - each XML element must have an opening tag (e.g., '<tag>') and a corresponding closing tag (e.g., '</tag>'). Tags must be properly nested, meaning that if an element is opened with another, it must be closed before the parent element is closed.

  • Element Hierarchy - XML documents are structured in a tree format, where elements can contain other elements in a parent child relationship. Validation checks that elements are arranged according to their hierarchical rules, ensuring the XML structure matches the Document Type Definition (or DTD) file.

Validating XML formatting ensures that the XML code is well formed (correctly tagged and nested) when saved.

Error Message

If there is an error in the XML code, an error message will appear on saving. The error message details the line number, position and specific formatting issue which requires amendment to save.