Get Details of a Particular CronAdmin Scope

Note: Ensure you have installed the required package to use this SDK method.

You can pass the name or the Cron ID of the required Pre-Defined or Dynamic Cron to the getCron() SDK method to get details about the cron.

The jobScheduling reference used in the code snippets below is the component instance created to perform these operations.

copy
const cronDetailsWithName = await jobScheduling.CRON.getCron('test_cron'); // get cron with cron name
const cronDetailsWithId = await jobScheduling.CRON.getCron('1234567890'); // get cron with cron ID

Last Updated 2026-07-02 14:51:41 +0530 IST