I have created a custom job class by following this blog. Is it possible to pass values as parameters into the code or is there another approach to providing data?
IMHO no.
I don't know your use case, but what I did once in a custom module was to use a module setting to automatically delete records after a given number of days/months/years. The scheduled tasks reads the value (per module) from the module settings table, and then deletes the records. If no value is set, it uses a default value.
Happy DNNing! Michael
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.