function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
viswanadh pviswanadh p 

Help me:---- Lead Conversion Scenario

Hi all,

 Once we convert a LEAD by default Account, Contact, Opp. all converted.
But my scenario is: Once we convert a LEAD after 3 hours the Account,contact,Opp, will start to convert. Incase anybody try to convert all these objects at that time we need to get ERROR MESSAGE like this " session will be start after 3 hours".

Help me............

NagaNaga (Salesforce Developers) 
Hi Viswanadh,

As per your question, I understand that you want to create an account and contact 3 hours after the lead has been converted.
Its not a possible option as lead has to exist either in the "lead" form or "account/contact" form.Conversion itself means lead being transformed to account and contact.
Please let me know if you have any queries on this!!

Best Regards
Naga Kiran
1) Create a custom Convert button which will replace stad button on layout
2) Create custom Ready_For_Convert_DateTime custom field on Lead
3) update the field with currentTime + 3 hours whenever user clicks on the custom convert button
4) Write the hourly scheduler to pick up the leads whose convert time is on the clocks and convert then useing convert method of Apex
5) Add validaion rule that, if Ready_For_Convert_DateTime is populated then throw the error message to restrict the users.

I thing this should help you.