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)


<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="">

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.

Leave a Reply

Your email address will not be published. Required fields are marked *