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


You should look into Queueable Apex and Queueable Interface you can use JS to make a call and to make the call asynchronously.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.