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
tbfan6789tbfan6789 

Queueable interface in Apex Controller

I'm working on generating Opportunites and Opportunity Lines based on certain criteria entered into a visualforce page by our internal users.  Just in case we run into the too many DML rows on the Opportunity Line Insert is it possible to setup a Queueable interface in the apex controller and call the execute method from a command button?
Best Answer chosen by tbfan6789
VinayVinay (Salesforce Developers) 
Hi,

Yes, you can call queueable method from the command button.

https://salesforce.stackexchange.com/questions/309765/how-to-call-queueable-apex-method-from-visualforce-page-commandbutton
https://www.infallibletechie.com/2016/08/queueable-apex.html

Thanks,
Vinay Kumar

All Answers

VinayVinay (Salesforce Developers) 
Hi,

Yes, you can call queueable method from the command button.

https://salesforce.stackexchange.com/questions/309765/how-to-call-queueable-apex-method-from-visualforce-page-commandbutton
https://www.infallibletechie.com/2016/08/queueable-apex.html

Thanks,
Vinay Kumar
This was selected as the best answer
tbfan6789tbfan6789
Thanks!  I think I have what I need!