Hello,
Does someone know how, or if it is possible, to run the job scheduler with extra parameters?
We want to run a job and we want to specify a date from which the data will be taken.
Example:
We have customers, and we want to make the bills for the period of June the first till July the first.
But we don't know how to get those parameters from the job scheduler into the job itself.
So my question:
How to create a job with extra parameters which will be send to the scheduler.
Thanks,
Rens
0
Comments
It depends on what drives the logic of the extra parameters.
If they params are static you can concatenate them in the parameter you send to NAS. And in the NAS function in codeunit 1 you just separate them out again.
If it is dynamic then you will have to keep track of them in the db and just update them whenever the NAS routine is being run.
P.S. I guess I am trying to say that it is not possible directly
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
make them date fields. and then you just have to update those for the period you want.
then your report that you run in the job scheduler, modify it to use the dates found in the customer setup table.
I run the reports at night, so setting the paramaters before I leave is not a problem
then you could create forms for your customer reports that had the parameters for those, and a different form for vendor reports. or inventory reports, ect. this way you wouldn't be modifying a lot of tables.