You need to sign in to do that
Don't have an account?

custom lead convert button created on custom object
Hi All,
we created a custom convert button on custom object,which is to convert
You need to sign in to do that
Don't have an account?
Hi All,
we created a custom convert button on custom object,which is to convert
So whats the issue in that.
Udyarar,
Try below :-
Hi vinit kumar,
Thanks for the code,I have saved this code in apex class then what i have to do am new to apex coding plz tell me immediately its very urgent. waiting for ur reply.Reply me as soon as possible.
Regards
udaya
You need to create a VF page and use this class as an extension to it.Then,you can create a Custom button and attach the VF page to it.
Here this VF page code is correct or not,if wrong means tell me the correct one
<apex:page Controller="LeadConversion" cache="true" action="{!autorun}" extensions="leadController" >
<br/><br/>
<apex:messages style="color:red; font-weight:bold; text-align:center;"/>
<apex:form >
<center>
<apex:commandLink value="Redirect to Lead" style="color:blue; font-weight:bold;" action="{!RedirecttoLead}"/>
</center>
</apex:form>
</apex:page>
thanks,
regards,
Udaya
Change this line from
<apex:page Controller="LeadConversion" cache="true" action="{!autorun}" extensions="leadController" >
to
<apex:page StandardController="Lead" cache="true" action="{!convertLead}" extensions="LeadConversion" >
geting this error
unknown Constructor'Lead/Conversion.LeadConversion() Create a apex method 'LeadConversion.LeadConversion()'
Please check this once.
thanks,
regards.
udaya.
Can we control the custom lead conversion class(LeadConversion), not to create account. I just wanted to create only contact when converting the lead. Is it controlling in the code anyway.
Thanks.