Keyfax
  • 📋What is Keyfax?
  • Product Suite
    • Keyfax Administrator Tools
      • System Requirements
      • Installation
      • Logging On
      • Navigation
      • Exclusive Mode
      • Script Levels
        • Master Scripts
          • Category Editing
          • Topic Editing
          • Self-Service Categories
        • System Scripts
          • Cancel
          • Priority Justifications
          • Results
          • Special Instructions
          • Startup
        • Script Sets
          • Category Properties
          • Setting up Topics
          • Topic Properties
          • Loading Script Sets
      • Script Editing
        • Script Editing - The basics
        • References
        • Testing your changes
        • Script Flows
      • Script Entities
        • Databoxes
          • Script Data
            • Host-specific notes
          • SQL Query
            • Testing SQL Query Databoxes
          • Import XML
          • Export XML
          • System Values
          • Company Data
          • Testing Databoxes & Expressions
          • Databox Read
          • Databox Write
          • Databoxes in Messages & Tasks
        • Questions
          • Address
          • Checklist
          • Date/Time
          • Dynamic Lists
            • Testing Dynamic Lists
            • Dynamic List Examples
          • External Forms (eForms)
            • External Forms - Technical
          • File Upload
          • List
          • Numeric
          • Text
          • Video Call
        • Asset Data
        • Markers
        • Messages
          • Testing Messages
        • Services
          • Host-specific notes
        • Priorities
        • Tasks
          • Enclosures & Attachments
          • Continuations
          • Host-specific notes
      • Reports
      • Databox Examples
        • Business Days
        • Working Hours
        • Time of day
        • Higher priority jobs
        • Script Duration
        • How did it happen?
        • Repair Description
        • Concatenating CSV
        • Tenant Handbook
        • Multi-line Addresses
        • Priority / Response Days
        • Contains Text
      • Databox Expressions
        • Text Expressions
          • CSV
          • Entry
          • Exists
          • FieldMerge
          • Index
          • IndexOf
          • InList
          • Item
          • Len
          • ListTidy
          • Lower
          • PadLeft
          • Replace
          • Row
          • RowMerge
          • SubStr
          • Trim
          • Upper
          • WCase
        • Numeric Expressions
          • Abs
          • AsNum
          • Between
          • Int
          • Mod
          • Number
          • Result
          • Round
        • Date Expressions
          • After
          • AsDate
          • Before
          • BetweenDates
          • DateAdd
          • Day
          • Month
          • Now
          • Today
          • WeekDay
          • Year
        • Number Formatting
        • Operators And Literals
        • Logical Expressions
        • Additional Functions
          • Ds
      • Users
        • Finding active users
        • Keyfax SSO – via Microsoft Entra ID Support
      • Advanced
        • Base Task Templates
          • Email Task Templates
          • Letter Task Templates
          • Note Task Templates
          • SMS Task Templates
          • VoiceSage Task Templates
          • Host-specific notes
        • Export & Import
        • Communications Queues
      • Host Operations
        • ActiveH Operations
          • Introduction
          • Actions
          • Databoxes & UDEs
          • Emails
          • Mail Merge Letters
          • Populating CallType
          • Populating JobType
          • Repairs Inspection Task
          • Repairs Interface
        • Fast Lean Smart
      • Best Practices
        • Extracting XML from Keyfax tables
        • Script Performance
        • Handling multiple rows from SQL
        • HTML Editor
        • Writing SQL Queries
      • Known Issues
        • Startup Messages
        • Running but not Visible
        • Error 1001 During Install
        • Stopped Working
    • Keyfax Staff
      • System Requirements
      • Advisor Feedback
      • Priority and Quantity
    • Keyfax Self-Service
      • System Requirements
      • Browser Support
    • KeyNamics
      • Model Driven Apps
      • Power Pages Portals
      • Installation
        • System Requirements
        • Solution Import
        • Basic Setup
        • Known Issues
      • Embedding
        • Model Driven Apps
        • Power Pages Portals
      • Configuration
        • Settings
        • Mappings
          • Creating Mappings
          • Minimum Mapping Requirements
          • Mapping Entity Form Fields
          • Mapping Lookup fields
          • Mapping Examples
        • FetchXML
          • Creating FetchXML queries
        • Logging
        • Test
      • Advanced
        • Mode Translation Rules
        • Customising Launch Button
        • Extending Export Data
        • Mapping Dump Fields
        • Mapping JSON Results
        • Enabling Help Panes
        • Mobile Operation
        • Handling uploaded content
      • Technical
        • Topology
        • Copying Environments
        • Keyfax Startup Data
        • Keyfax Export Data
    • Keyfax Client
      • Installation
        • Getting Started
        • Launch Tester
        • Uninstall / reinstall
        • Known Issues
    • Keyfax Cloud
      • Uptime Guarantee
      • Business Continuity
  • General
    • General FAQs
      • General Questions
      • Installation Questions
      • Migration Questions
      • Security Questions
      • Test & Training Questions
    • Keyfax FAQs
      • Keyfax Administrator Tools
      • Keyfax Staff
      • Keyfax Self-Service
      • KeyNamics
      • Keyfax Client
      • Keyfax Cloud
    • Issues & Solutions
      • Emails not working
    • Release Notes
      • Keyfax
        • 4.4.7
        • 4.4.6
        • 4.4.5
        • 4.4.4
        • 4.4.3
        • 4.4.2
        • 4.4.1
        • 4.4.0
        • Previous Releases
      • Keyfax Client
        • 4.0.0.44
        • 4.0.0.43
        • 4.0.0.42
        • Previous Releases
      • KeyNamics
        • 3.0.0.0
        • 2.0.0.13
        • Previous Releases
      • Older Releases
        • Staff
  • Integrations
    • API Docs
      • REST API
        • Quick Start
        • Deep Dive
        • API SDKs
          • .NET SDK
          • JavaScript SDK
          • Start-Up Data
          • Processing Results
        • API Reference
      • SOAP API
        • Quick Start
        • Error Handling
        • Status Codes
        • XML Schemas
          • Startup Schema
          • Results Schema
          • Results with Note
          • Cancelled Schema
          • Address data
      • Legacy APIs
        • Active X
        • Asynchronous Pluggable Protocols
        • XmlHttp
    • Integrations
      • Aareon
        • Introduction
        • Launching Keyfax Repairs
        • Launching Keyfax Enquiries
        • Configuration
        • SOAP based integration
        • QL Message fields
        • Known problems
      • Accuserve
      • ActiveH Desktop
        • Introduction
        • ActiveH Repair Interface
        • Known Problems
        • Keyfax Configuration
          • MISExchange.xml
          • Example Settings
          • Retrieving Block Codes
        • MIS Configuration
          • Exchange Process
          • Exchange Elements
          • User Permissions
          • User Security
          • UDE Interface
          • UDE Configuration
          • Settings
          • Desktop Configuration
          • Priorities Configuration
          • Populating Job Type
          • Populating Assigned To
          • Populating Call Classification
          • Configuring Log Call
            • Launching Keyfax from Response Repairs
          • Workflow Integration Actions
        • MIS interface Objects
          • CRM Gateway
          • Desktop Task
          • System Task Email Addressee
          • Desktop Task Action
          • Repair Request
          • Repair Request Inspection
          • Repair Request Task
      • ActiveH Portal (TIPS)
        • Introduction
        • Settings
        • Known Issues
      • ActiveH Web
      • Breeze IT
      • Caltech
      • Capita
        • Capita Housing / Academy
          • Host Table Usage
          • Troubleshooting
        • Open Housing
      • Civica
        • Civica CX
          • Introduction
          • Mappings
          • Start Up Data
          • Inspections
          • Known Issues
        • Civica CM
          • Known problems
        • Servitor
          • Example Import XML
          • Example Export XML
      • ContactView
      • Dynamics
      • Kirona
      • Lagan
      • MIS
      • MRI
      • Northgate
        • Launching Keyfax
        • Exchange process
        • XML/Field mappings
      • OneServe
      • ROCC
      • Total Mobile
        • Launching Keyfax (TASK)
        • TotalView Configuration
      • SDM
    • Best Practices
      • Integration Considerations
      • Displaying Keyfax Self-Service
  • Technical
    • General
      • Keyfax Architecture
      • Clearing Cache
    • Cloud Operation
      • Microsoft Azure
      • Amazon Web Services
    • Configuration Settings
      • Introduction
      • Paths Element
    • Developer Zone
      • eForm Technical Details
    • SQL Server
      • Freeing Space
      • Maintaining Indexes
      • Maintenance Plan
      • Restoring Live into Test
  • Links
    • Our Web Site
    • Our Blog
    • Try Keyfax
    • Contact Us
Powered by GitBook
On this page
  1. Product Suite
  2. KeyNamics
  3. Configuration
  4. Mappings

Creating Mappings

Learn how to create mappings within KeyNamics.

PreviousMappingsNextMinimum Mapping Requirements

Last updated 1 year ago

Creating a mapping entry is quite straight-forward. In it's most basic form, a mapping defines the data to be...

  • Sent to Keyfax - To enrich the capabilities of the Keyfax scripts

  • Received from Keyfax - In order to populate fields in the current form once the script has completed

Below KeyNamics Configuration\Mappings click New. This will present the following screen:

Fields

Below are descriptions of each of the fields required to create a Mapping entry.

Name

Any name which describes the data being mapped. Please enter only upper/lower case alphanumeric, space, dash and underscore characters.

TIP if this mapping is merely to be used as a Bookmark for a FetchXml query, it is useful to name it accordingly so that it is clearly identified in a list of mappings, e.g. 'Bookmark: Contact Name and Address'

Entity Name/Global

This is the name of the entity to which this mapping applies, e.g. account, contact, cust_repairs. Essentially, this is the name of the form where the Keyfax launch button is located. If 'Global' is specified, this mapping will be used across all Forms/Cases. If a Global mapping exists, it can be overridden by an entity-level mapping with the same Target.

Data Direction

This determines whether this mapping will send data to, or receive data from Keyfax.

Source Type

If you are sending data to Keyfax you can select any of:

  • The Dynamics Organisation Name

  • The currently logged in Dynamics Username

  • FetchXml query - only available if you are sending data to Keyfax

If you don't select any of the above, the Source or Default fields specified in the form fields below will be used. If you are receiving data from Keyfax the Source Type field is hidden; in this case, it's only possible to specify an xPath into Keyfax's export data (XML).

Source

f you are sending data to Keyfax, this can be a parent/field specifier e.g. contact/address1_composite In this case, you will need to be certain that the Form that launches Keyfax actually has a current parent (e.g. Account, Contact etc). Alternatively, this can be an xPath that accesses any field on the Current form (importantly, - it must contain data) where Keyfax is being launched. Fields on the current Form can be accessed as XML, e.g.

  • //field[@name='contact']/@id

will return the id of the field named contact.

XPath is a powerful construct. For example, if you wished to map data from different fields, any one of which may contain data:

  • //field[@name='contact' or @name='property' or @name='block' or @name='estate']/@value

Default

If the data you are trying to send or receive does not exist, or no Source has been specified, or if you simply need to use a fixed value, this default value will be used. KeyNamics can run across different clients; these are currently defined as:

  • Web - Unified Interface

  • Outlook - Dynamics 365 for Outlook client

  • Mobile - Mobile app

As it may be necessary to supply different default values for each client, this can be achieved by providing a comma-separated list of values, e.g.

  • web=RD,mobile=ROL,outlook=ROL

Target

If this mapping is sending data to Keyfax, this will be the name of the node in the Startup data XML packet. For example:

  • Caller/Name

  • Caller/Title

If receiving data from Keyfax, this is the form field name which will receive the data provided by the Keyfax diagnostic. Also, when receiving data from Keyfax scripts into Lookup fields in Dynamics, the scripts must export the exact same text as it appears in the Lookup, e.g. ‘Doors and Windows’., ‘Heating and Electrics’ etc. If the target specified is 'null' this indicates that the mapping is purely used to derive data intended to satisfy bookmarks within FetchXml queries and will not be sent to Keyfax. If multiple (comma separated) target names are specified and the mapping is using a FetchXml query that returns multiple items, they will be split out to suit. For example, consider this FetchXml query which returns four items

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" count="1">
   <entity name="systemuser" >
       <attribute name="domainname" />
       <attribute name="lastname" />
       <attribute name="isdisabled" />
       <attribute name="islicensed" />
       <filter type="and" >
           <condition attribute="fullname" operator="eq" value="[BOOKMARK#1]" />
       </filter>
   </entity>
</fetch>

By setting the target to:

  • domainName, lastName, isDisabled, isLicensed

these four nodes will be created and sent to Keyfax in the startup/launch data.