function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matyas CsabaMatyas Csaba 

Deploy LeadConvertSettings

Hello Helpers

I would like to  deploy  Lead conversion mapping. Reading the specs LeadConvertSettings  is  where solutionnis
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_leadconvertsettings.htm

I  am able  to retrieve all  mapping with a Package.xml  like below:

<types>
    <members>*</members>
    <name>LeadConvertSettings</name>
</types>

BUT  i  do not  want all  mapping items
I want o deploy  only  a  couple  of  Lead  to Opportunity mapping
If  I  delete items from the leadConvertSettings ffile and Keep  only  the fileds I am interested  and Deploy, All other  mappings are deleted

<?xml version="1.0" encoding="UTF-8"?>
<LeadConvertSettings xmlns="http://soap.sforce.com/2006/04/metadata">
    <objectMapping>
        <inputObject>Lead</inputObject>
        <mappingFields>
            <inputField>MyLeadField</inputField>
            <outputField>MyOppField</outputField>
        </mappingFields>
         <outputObject>Opportunity</outputObject>
    </objectMapping>
</LeadConvertSettings>



In the Destination  Org  I want to  keep  all existing mapping and add some new one.  I  wan tto deploy  only    tne new ones

Thaanks in advance
Csaba