I would like to know how to stop converting Lead to Account in before insert trigger without addError() method?
To be more precise I try to achieve the following: 1. Stop the process of converting Lead to Account. 2. Display message in the convert Lead to Account page that the respective Lead is not converted. 3. Set and Update the Lead.Status__c field to 'Existing Deal'.
I've tried the above in before insert trigger and I used addError() method to stop the process of converting Lead to Account as well as to dispaly message in the convert page that the Lead is not converted but the problem is that the addError() method is making a rollback of my changes and I can neither save nor update my changes and records into the Lead database table. I used @future method as well as a savepoint because I thought it will help me set and update my changes but it did not help. Therefore I decided to start investigating and searching for a feasible way to achive what I want via VF by using controller.
Could you please advise how to achieve what I want either by using trigger or controller?