Hello everyone,
I recently started updating old APIs and stumbled upon some endpoints being called through cron tasks. I thought it would be straightforward if I used the function service.invokeChannel
in a script triggered by the task. Obviously, that didn’t work, so I'm asking for your help. I’m wondering if it has something to do with using the wrong type of script or the wrong class.
Here’s the setup I’m using:

And the script:

Thank you kindly.