API Connect

 View Only

 How to call a invocation channel with a cron task

Pedro Vicente's profile image
Pedro Vicente posted Tue April 22, 2025 05:58 AM

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.