Hello,
i have written some code to automate certain processes. These codes were written in “Page Actions”.
Is there any way too run Page Actions with Job Queue?
Rewriting these codes in Reports or Codeunits would take way too much time.
I couldn’t find anything about this on the World Wide Web.
best regards,
Hi as per my knowledge this is the only way you can run the page actions from job queue.
In your codeunit, in OnRun trigger property give the table no as “Job Queue Entry”
then try to write a Case statement which will call the function code which is present in your action button.
Ex.:
CASE UPPERCASE(“Parameter String”) OF
‘ANYNAME’ :
BEGIN
YourFunction();
END;
END;
Use the value which you have given, in this ex. ‘ANYNAME’ in “Parameter String” field of “Job Queue Entries” page.
Start the job queue for your timings so that it runs your code without your involvement in clicking action button.
Hope this helps you.
Hello,
seems to be a good and simple solution! Haven’t thought of it.
Thanks man!
best regards,