Skip to main content
I am looking to map the Lead Record Type to the Opportunity Record Type when I convert the lead. Right now the Opportunity Record Type populates with a default value. I have only written a few apex triggers as of now and am still new to salesforce, I appreciate any help! 
6 respuestas
  1. 22 feb 2015, 16:10
    You can try the following:

    1)(Can be done using the out-of-box functionality: Create a custom field on Lead object which stores the value of lead record type and map it to a custom field on the Opportunity side such that it stored the value of the lead record type

    2)Write a before insert trigger on opportunity such that it looks at this value of the custom field and sets the record type of the opportunity
0/9000