Glyue User Docs
  • What is Glyue?
  • Tutorials
    • Start Here
    • Building a Single-Step Integration
      • 1. Creating the Integration
      • 2. Calling the External System
      • 3. Running the Integration
      • 4. Crafting the Output
    • Building a Multi-System Integration
      • 1. Connecting to the Core
      • 2. Field Mapping
      • 3. Running the Integration
    • Building an Event-Driven Integration
      • 1. Setting up the Mock CRM
      • 2. Receiving Inbound Requests
      • 3. Triggering the Integration from the CRM
    • Building an Email Integration
      • 1. Create and Configure the Integration
      • 2. Input Validation
      • 3. Get Story IDs from Hacker News
      • 4. Get Story Content
      • 5. Sending the Email
      • 6. Wrapping Up
      • 7. Extra credit
        • extra_credit.json
    • Building a RESTful CRUD Web Service
      • 1. Integration Setup
      • 2. Vault Setup
      • 3. Create Web Service Endpoints
      • 4. Execute Web Service Endpoints with Vault Methods
      • 5. Vault Code Examples and Explanation
    • Building a Retrieval API against FIS CodeConnect
      • 1. Integration Setup
      • 2. Service Request Setup
      • 3. Field Mapping Setup
      • 4. Integration and Service Request Hook Setup
      • 5. Testing the Integration
      • 6. Common Errors
    • What is Pre-Mapping?
      • Before you start
      • Bookmarks
      • Source and Targets
      • Field Mapping Status
      • Field Mapping Comments
      • Summary
  • How-To Guides
    • How to Run an Integration from Glyue
    • How to Invite New Users
    • How to Create a Value Mapping Set
    • How to Build and Deploy a Custom Frontend
    • How to Migrate an Integration
    • How to Set Up Single Sign On (SSO)
      • Glyue Setup
      • JumpCloud Setup
      • Azure Setup
      • Okta Setup
      • Glyue SAML Config Reference
    • How to Install the Glyue App for Zoom Contact Center
    • How to use the Vault
  • Reference
    • Integration Builder Page
    • Integration Anatomy
    • Integration Components
      • Integration
      • Service Request
      • Field Mapping
      • Value Mapping Set
      • Value Mapping
      • Validation Rule
      • Mask
      • Integration Config
      • Integration Engine Versions
    • Integration Lifecycle
    • Special Functions
      • add_run_label
      • callint
      • debug
      • end
      • get_namespace
      • humanize
      • import_helper
      • keep
      • list_files
      • map_value
      • open_glyuefile
      • open_vault
      • Data Manipulation Utilities
      • calladapter
    • Special Variables
      • __adapter_config__
      • input
      • parentint
      • retvalue
      • run_history_id
      • Iterables
        • fitem/fidx
        • sritem/sridx
        • vritem/vridx/vrmsg
    • Adapters
      • Generic HTTP Adapter
      • Email SMTP Adapter
    • Web Service Endpoints
    • Vault Reference
  • Glyue Platform Reference
    • Banking Core Connectivity Guide
    • Authentication
    • Permissions
      • Service Accounts
      • Organizations
    • Frontends
    • Idempotency Layer
    • Integration Scheduler
    • Governance Reports
    • Arbitrary Integration Request Content Support
    • Admin Components
    • Logging
  • ETL
    • Glyue ETL Overview
    • Data Connectors
    • Workflows
    • Run History
    • Scheduler
Powered by GitBook
On this page
  • When to use a Value Mapping Set
  • Creating a Value Mapping Set
  • Creating Value Mappings
  • Using Value Mapping Sets Outside of Field Mappings

Was this helpful?

  1. How-To Guides

How to Create a Value Mapping Set

When to use a Value Mapping Set

Value Mapping Sets are an efficient way to set up on a field in a payload. For example, two systems may have a field state, but the source system sends the value as the state abbreviation, while the destination expects it as a full spelling. Other common use cases include:

  • Translating between internal codes and external-facing names

    • e.g. a product code 400 may refer to the "High Yield Savings" product

  • Reconciling different names, spelling, or formatting for the same concept across systems

    • e.g. High Yield Savings vs. High-Yield Savings Account

  • Performing a many-to-few transformation

    • e.g. All variations on a checking account (High School Checking, College Checking, Standard Checking) are to be represented simply as Checking Account

If you find yourself writing if-else blocks that have more than 5 cases, a Value Mapping Set should be used instead.

Creating a Value Mapping Set

A Value Mapping Set has two components:

  • The Value Mapping Set, which a field mapping will refer to

  • The actual Value Mappings that belong to the set, which detail an individual transformation case

  1. On the build page, find your integration, right-click, then select Go To > Value Mapping Set.

  2. Click + Add Row to create the new Value Mapping Set

  3. Give your Value Mapping Set a clear name and description

The default settings on the value mapping set are sufficient for most use cases, but there are some instances where you may want to adjust them.

  • If the incoming values are case sensitive (e.g. if usa vs USA are two distinct values that may both appear in the source system), set the Case Sensitive setting to true

    • Keeping Case Sensitivity off results in a more robust and forgiving integration, especially if the incoming values are manually entered in the source system

  • If the incoming value has many options, but the majority result in the same output value, it can be easier to set a default value and only create Value Mappings for exceptions where the non-default value should be used. To do this, set Use Default To Value to true, then enter the desired default value in the Default To Value column.

Instead of this: 

From            To
value1          output1
value2          output1
value3          output1
value4          output2
value5          output1

------------------------

Do this:

Default To Value --> output1

From            To
value4          output2      
  • If you don't know all possible values that may occur in the source system, it can be useful to set a default value to handle these cases, assuming such a value exists

    • If a default value is not set, any unrecognized values will be left unmodified.

  1. Find your desired field mapping, and select the Value Mapping Set you created in the Value Mapping Set column.

Once a Value Mapping Set is created, it can be used on multiple field mappings if necessary.

Creating Value Mappings

Having created the Value Mapping Set, we can now create the component Value Mappings that comprise it. Right click on the Value Mapping Set row, the select Go To > Value Mapping. Click + Add Row to create a new Value Mapping. Because we opened the page via the context-menu of a Value Mapping Set, the Value Mapping Set column is prefilled.

Enter the incoming value in the From column, then the corresponding output value in the To column.

If you have many Value Mappings already formatted in an external spreadsheet, you can simply create empty rows for them, then copy/paste them into the corresponding cells in Glyue.

Using Value Mapping Sets Outside of Field Mappings

Value Mapping Sets are powerful because they are the source-of-truth for the translation of a particular field. There are times when that information may be useful contexts outside of a direct field mapping, such as if logic in your integration expects the transformed value of a field.

Value Mappings Sets can still be used in these situations via the map_value() function, which takes in the name of the Value Mapping Set and the input value, and returns the corresponding output value.

PreviousHow to Invite New UsersNextHow to Build and Deploy a Custom Frontend

Last updated 9 months ago

Was this helpful?

More about map_value() can be found in .

its documentation