Mappings
<?xml version="1.0" encoding="utf-8"?>
<!-- The Civica CX Mappings File
IMPORTANT: The default attribute is used if the xPath attribute is omitted or the xPath expression does not resolve to any node.
If the xPath attribute resolves to a valid node this nodes inner text will be used over the default value unless the nodes inner text is also empty or zero.
If the nodes inner text is empty or zero the default attribute will be used providing the default attribute is not also empty or zero
**************************
Supported mapping ids include...
**************************
- AssetId - Corresponds to the WorksOrderDetail.AssetId
- ContactId - Maps to RepairRequest.MainContactId
- Description - Maps to RepairRequest.Problem
- PriorityId - Maps to RepairRequest.PriorityId
- PriorityText - Maps to RepairRequest.PriorityId (requires lookUpTypeId)
- WorksOrderAccessNotes - Maps to WorksOrderDetail.AccessNotes
- WorksOrderRepairTypeId - Maps to WorksOrderDetail.RepairTypeId
- WorksOrderRepairTypeText - Maps to WorksOrderDetail.RepairTypeId (requires lookUpTypeId)
- WorksOrderOutcomeId - Maps to WorksOrderDetail.OutcomeId
- WorksOrderOutcomeText - Maps to WorksOrderDetail.OutcomeId (requires lookUpTypeId)
- WorksOrderPriorityId - Maps to WorksOrderDetail.PriorityId
- WorksOrderPriorityText - Maps to WorksOrderDetail.PriorityId (requires lookUpTypeId)
- WorksOrderStatusId - Maps to WorksOrderDetail.OrderStatusId
- WorksOrderStatusText - Maps to WorksOrderDetail.OrderStatusId
- WorksOrderDescription - Maps to WorksOrderDetail.Description
- WorksOrderAdditionalAnalysisId Maps to WorksOrderDetail.AdditionalAnalysisId
- WorksOrderAdditionalAnalysisText- Maps to WorksOrderDetail.AdditionalAnalysisId
- WorksOrderRework - Maps to WorksOrderDetail.Rework
- WorksOrderRightToRepair - Maps to WorksOrderDetail.RightToRepair
- Repairs - Maps to repairTasks
- LocationId - Maps to RepairTaskDetail.LocationId
- LocationText - Maps to RepairTaskDetail.LocationId (requires lookUpTypeId)
- InspectionTypeText - Maps to InspectionDetail.InspectionTypeId
- InspectionAccessDetails - Maps to InspectionDetail.AccessDetails
- InspectionDescription - Maps to InspectionDetail.Description
- InspectionOutcomeTypeId - Maps to InspectionDetail.OutcomeId
- InspectionOutcomeTypeText - Maps to InspectionDetail.OutcomeId
- InspectionStatusId - Maps to InspectionDetail.InspectionStatusId
- InspectionStatusText - Maps to InspectionDetail.InspectionStatusId
**************************
For further details see https://github.com/Omfax-Systems/Keyfax/issues/1210
-->
<CxMappings>
<Config>
<Api>
<!-- i.e. https://cxtest.domain.co.uk/ or https://cxnewtest.domain.org.uk/ -->
<Url>https://cx.domain.org.uk/</Url>
<Username>CxUser</Username>
<Password>*********************</Password>
</Api>
<Web>
<Redirect>
<!-- Optional URL to display a link to the created repair request within Civica CX after Keyfax complete (on Completed/Default.aspx) -->
<!-- If either settings are ommited no link is displayed. {RepairRequestId} and {WorksOrderId} will be replaced with the real IDs at runtime -->
<!-- {RepairContactId} will get repalced with the MainContactId associated against the created repair request -->
<RepairRequestText>Open Civica CX Repair Request</RepairRequestText>
<RepairRequestUrl>https://cx.domain.org.uk/cx/LaunchScreen?token=&EntityType=RepairRequest&EntityId={RepairRequestId}</RepairRequestUrl>
</Redirect>
</Web>
<Admin active="1">
<List id="inspectionTypes">
<Item value="0">Service</Item>
<Item value="1">Pre Inspection</Item>
<Item value="2">Post Inspection</Item>
</List>
</Admin>
</Config>
<Mappings>
<RD>
<!-- ************ Repair Request ************ -->
<Mapping id="ContactId" default="213101" xPath="Fault[@name='Fault1']/ClientID/text()"/>
<Mapping id="AssetId" xPath="Fault[@name='Fault1']/AssetID/text()"/>
<!--<Mapping id="Description" default="N/A" xPath="Fault[@name='Fault1']/FaultText/text()" />-->
<Mapping id="Description" default="N/A" xPath="Fault[@name='Fault1']/FaultText/text(),Fault[@name='Fault2']/FaultText/text(),Fault[@name='Fault3']/FaultText/text()" maxLen="1000" />
<Mapping id="PriorityId" default="4" requireXPath="false" lookUpTypeId="0" xPath="Fault[@name='Fault1']/Repair[@name='Repair1']/Priority/text()" />
<!-- ************ Works Order ************ -->
<Mapping id="WorksOrderStatusText" default="Entered Request" xPath="Fault/StatusText" />
<Mapping id="WorksOrderPriorityId" default="4" lookUpTypeId="0" requireXPath="false" xPath="Fault[@name='Fault1']/Repair[@name='Repair1']/Priority/text()" />
<Mapping id="WorksOrderRepairTypeId" default="3" lookUpTypeId="1" xPath="Fault[@name='Fault1']/Nominal_Code/text()" />
<Mapping id="WorksOrderOutcomeText" default="Contractor Cancelled" lookUpTypeId="145" />
<Mapping id="WorksOrderDescription" default="N/A" xPath="Fault[@name='Fault1']/FaultText/text(),Fault[@name='Fault2']/FaultText/text(),Fault[@name='Fault3']/FaultText/text()" maxLen="1000" />
<Mapping id="WorksOrderAdditionalAnalysisText" default="NA" lookUpTypeId="19" />
<Mapping id="WorksOrderRework" default="0" xPath="Fault[@name='Fault1']/Rework/text()" />
<Mapping id="WorksOrderRightToRepair" default="0" xPath="Fault[@name='Fault1']/RTR/text()" />
<Mapping id="WorksOrderAccessNotes" default="N/A" xPath="Fault[@name='Fault1']/Additional_Info/text()" />
<Mapping id="WorksOrderAdditionalAnalysisId" default="12" lookUpTypeId="19" xPath="Fault[@name='Fault1']/WorksOrderAdditionalAnalysisId/text()" />
<!-- ************ Repair Tasks ************ -->
<Mapping id="Repairs" requireXPath="false" xPath="Fault/Repair"/>
<Mapping id="LocationText" default="Bathroom" lookUpTypeId="43" />
<!-- ************ Inspections ************ -->
<!-- IMPORTANT: Inspections elements must always have a default attribute as the xPath may not appear within all Keyfax reuslts -->
<Mapping id="InspectionTypeId" default="1" xPath="Fault[@name='Fault1']/Action[@name='Action1' and @type='MIS_INSPECTION']/ActionCodeEx/text()" lookUpTypeId="50057" />
<Mapping id="InspectionOutcomeTypeId" default="1" xPath="Fault[@name='Fault1']/InspectionOutcomeTypeId/text()" lookUpTypeId="18" />
<Mapping id="InspectionPriorityId" default="2" xPath="Fault[@name='Fault1']/Action[@name='Action1' and @type='MIS_INSPECTION']/Priority/text()" lookUpTypeId="0" />
<Mapping id="InspectionStatusId" default="1" xPath="Fault[@name='Fault1']/InspectionStatusId/text()" lookUpTypeId="62" />
<Mapping id="InspectionAccessDetails" default="N/A" xPath="Fault[@name='Fault1']/Additional_Info/text(),Fault[@name='Fault2']/Additional_Info/text(),Fault[@name='Fault3']/Additional_Info/text()" maxLen="1000" />
<Mapping id="InspectionDescription" default="N/A" xPath="Fault[@name='Fault1']/FaultText/text(),Fault[@name='Fault2']/FaultText/text(),Fault[@name='Fault3']/FaultText/text()" maxLen="1000" />
<Mapping id="InspectorId" default="0" xPath="Fault[@name='Fault1']/InspectorID/text()" />
</RD>
<FL>
<Mapping id="ContactId" default="24786" xPath="Enquiry[@name='Enquiry1']/ClientID/text()"/>
<Mapping id="AssetId" xPath="Enquiry[@name='Enquiry1']/AssetID/text()"/>
<Mapping id="Description" default="Test description - should be overriden by xPath" xPath="Fault[@name='Fault1']/FaultText/text()" />
<Mapping id="StatusText" default="Entered - Request" xPath="Enquiry/StatusText" />
<Mapping id="RepairTypeText" default="Response - General Reactive" lookUpTypeId="1" />
<Mapping id="OutcomeText" default="Right First Time" lookUpTypeId="145" />
<Mapping id="WorksOrderDescription" default="Test works order description" xPath="Fault[@name='Fault1']/FaultText/text()" />
<Mapping id="LocationText" default="General" lookUpTypeId="43" />
</FL>
<ROL>
<Mapping id="ContactId" default="24786" xPath="Call[@name='Call1']/ClientID/text()"/>
<Mapping id="AssetId" xPath="Call[@name='Call1']/AssetID/text()"/>
<Mapping id="Description" default="Test description - should be overriden by xPath" xPath="Fault[@name='Fault1']/FaultText/text()" />
<Mapping id="StatusText" default="Entered - Request" xPath="Call/StatusText" />
<Mapping id="RepairTypeText" default="Response - General Reactive" lookUpTypeId="1" />
<Mapping id="OutcomeText" default="Right First Time" lookUpTypeId="145" />
<Mapping id="WorksOrderDescription" default="Test works order description" xPath="Fault[@name='Fault1']/FaultText/text()" />
<Mapping id="Repairs" xPath="Call/Repair"/>
<Mapping id="LocationText" default="General" lookUpTypeId="43" />
</ROL>
<EOL>
<Mapping id="ContactId" default="24786" xPath="Call[@name='Call1']/ClientID/text()"/>
<Mapping id="AssetId" xPath="Call[@name='Call1']/AssetID/text()"/>
<Mapping id="Description" default="Test description - should be overriden by xPath" xPath="Fault[@name='Fault1']/FaultText/text()" />
<Mapping id="StatusText" default="Entered - Request" xPath="Call/StatusText" />
<Mapping id="RepairTypeText" default="Response - General Reactive" lookUpTypeId="1" />
<Mapping id="OutcomeText" default="Right First Time" lookUpTypeId="145" />
<Mapping id="WorksOrderDescription" default="Test works order description" xPath="Fault[@name='Fault1']/FaultText/text()" />
<Mapping id="Repairs" xPath="Call/Repair"/>
<Mapping id="LocationText" default="General" lookUpTypeId="43" />
</EOL>
</Mappings>
</CxMappings>
General Mappings
- AssetId
AssetId- ContactId
ContactId- Description
Description- RepairTypeId & RepairTypeText
RepairTypeId & RepairTypeText- StatusId & StatusText
StatusId & StatusText- PriorityId & PriorityText
PriorityId & PriorityText- OutcomeId & OutcomeText
OutcomeId & OutcomeText- Repairs
Repairs- WorksOrderDescription
WorksOrderDescriptionHow are the correct CX mappings used for the export XML script type?
Look Up Values

Repair Location


Inspection Mappings
Last updated