I have a custom button that runs a web service call for an Apex class that makes a SOAP call to an external application. The problem is that this process is executed on the main thread and ends up crashing the browser. Anyone know how I do not catch the user's screen? Already try to put web worker can not import the libraries: apex.js connection.js
1 Answer
You should look into Queueable Apex and Queueable Interface you can use JS to make a call and to make the call asynchronously.