I have a requirement to run a codeunit in the background every time I click action on a page. I was considering using the job queue, but I am not sure how to configure it to meet my needs. I want the codeunit to run in the background without a set schedule, and I want it to run for each record individually before moving on to the next record. For example, if the code unit takes 15 minutes to run for one record on page and I start the process for another record immediately after, it should be added to the job queue and run only after the first one has completed. How can I set up the job queue to achieve this?
Any help or guidance will be appreciated...
Regards