<?xml version="1.0" encoding="UTF-8"?>
<CleanDataService xmlns="http://soap.sforce.com/2006/04/metadata">
    <cleanRules>
        <bulkEnabled>false</bulkEnabled>
        <bypassTriggers>false</bypassTriggers>
        <bypassWorkflow>false</bypassWorkflow>
        <description>Adds data info to leads</description>
        <developerName>DataService_Leads_Enrichment</developerName>
        <fieldMappings>
            <SObjectType>DataServiceCompanyObject</SObjectType>
            <developerName>DataService_Leads_Enrichment_InputMapping</developerName>
            <fieldMappingRows>
                <SObjectType>DataServiceCompanyObject</SObjectType>
                <fieldMappingFields>
                    <dataServiceField>Email</dataServiceField>
                    <dataServiceObjectName>Lead</dataServiceObjectName>
                    <priority>1</priority>
                </fieldMappingFields>
                <fieldName>Email</fieldName>
                <mappingOperation>Autofill</mappingOperation>
            </fieldMappingRows>
            <fieldMappingRows>
                <SObjectType>DataServiceCompanyObject</SObjectType>
                <fieldMappingFields>
                    <dataServiceField>Company</dataServiceField>
                    <dataServiceObjectName>Lead</dataServiceObjectName>
                    <priority>1</priority>
                </fieldMappingFields>
                <fieldName>Name</fieldName>
                <mappingOperation>Autofill</mappingOperation>
            </fieldMappingRows>
            <masterLabel>DataServiceInputMapping</masterLabel>
        </fieldMappings>
        <fieldMappings>
            <SObjectType>Lead</SObjectType>
            <developerName>DataService_Leads_Enrichment_OutputMapping</developerName>
            <fieldMappingRows>
                <SObjectType>Lead</SObjectType>
                <fieldMappingFields>
                    <dataServiceField>EmployeesTotal</dataServiceField>
                    <dataServiceObjectName>DataServiceCompanyObject</dataServiceObjectName>
                    <priority>1</priority>
                </fieldMappingFields>
                <fieldName>NumberOfEmployees</fieldName>
                <mappingOperation>Autofill</mappingOperation>
            </fieldMappingRows>
            <fieldMappingRows>
                <SObjectType>Lead</SObjectType>
                <fieldMappingFields>
                    <dataServiceField>Revenue</dataServiceField>
                    <dataServiceObjectName>DataServiceCompanyObject</dataServiceObjectName>
                    <priority>1</priority>
                </fieldMappingFields>
                <fieldName>AnnualRevenue</fieldName>
                <mappingOperation>Autofill</mappingOperation>
            </fieldMappingRows>
            <fieldMappingRows>
                <SObjectType>Lead</SObjectType>
                <fieldMappingFields>
                    <dataServiceField>Industry</dataServiceField>
                    <dataServiceObjectName>DataServiceCompanyObject</dataServiceObjectName>
                    <priority>1</priority>
                </fieldMappingFields>
                <fieldName>Industry</fieldName>
                <mappingOperation>Autofill</mappingOperation>
            </fieldMappingRows>
            <masterLabel>DataServiceOutputMapping</masterLabel>
        </fieldMappings>
        <masterLabel>Data Service Company Info for Leads</masterLabel>
        <matchRule>DataServiceLeadAppendMatchRule</matchRule>
        <sourceSobjectType>DataServiceCompanyObject</sourceSobjectType>
        <status>Active</status>
        <targetSobjectType>Lead</targetSobjectType>
    </cleanRules>
    <description>Data Service Companies for Leads</description>
    <masterLabel>Data Service Companies for Leads</masterLabel>
    <matchEngine>LeadEnrichmentMatchEngine</matchEngine>
</CleanDataService>
