0

I have Status field in Account object, the field is pick list and the values are

In progress

Complete

I created quick action button Run Queueable and if you click to that button it will trigger the Queueable Job, my question is...is there any way to:

  1. update Status field to In Progress when you click to Run Queueable
  2. once when the Queaueable finish work to update Status field to Complete

but without reloading page?

1
  • You have no control over when Queueable is going to run, thus your design is risky. Your user could be waiting seconds or minutes or longer. Your will need to write Apex code that polls the status of the job via job ID you get back from System.enqueueJob and then wire the client to that
    – identigral
    Oct 29 '21 at 16:49

Your Answer

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

Browse other questions tagged or ask your own question.