I have a requirement where I want to do the Lead conversion field mapping using apex code instead of doing it manually.

1 Answer 1


As of now, you can not update LeadConvertSettings using apex directly. You can do this using the metadata API. So you will need to call the metadata API from apex to be able to update this.

Refer LeadConvertSettings metadata API docs.

Metadata API Developer Guide

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .