Feb 092019

Salesforce – How to retrieve and deploy Lead mapping?

There are projects where I work on lead conversion and I have to move lead mapping from one sandbox to another (or production). As I do it quite rarely, I always have to Google how exactly should I do it.

This post is my memo about doing it using ANT.

I assume that you have it installed. If not – there’s a good tutorial (Ant Migration Tool Guide)

package.xml

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>LeadConvertSettings</name>
    </types>
    <version>40.0</version>
</Package>

LeadConvertSettings is available in API versions 39.0 and later.

One thing to keep in mind is that all of the fields that take part in the lead conversion process should already exist on destination org or be a part of the current package.

Tagged with , 0 comments

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.