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


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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.