Member Junction
    Preparing search index...

    Create Scheduled Job action. Creates a new scheduled job with the specified configuration.

    await RunAction({
    ActionName: 'Create Scheduled Job',
    Params: [
    { Name: 'Name', Value: 'Daily Data Sync' },
    { Name: 'JobTypeID', Value: 'F3C4A5B6-...' },
    { Name: 'CronExpression', Value: '0 0 * * *' },
    { Name: 'IsActive', Value: 'true' }
    ]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Build filter expression for job queries

      Parameters

      • filters: {
            createdAfter?: Date;
            createdBefore?: Date;
            isActive?: boolean;
            jobTypeId?: string;
            status?: string;
        }

        Object containing optional filter criteria

      Returns string

      SQL WHERE clause string

    • Creates a new scheduled job record

      Parameters

      • params: RunActionParams

        The action parameters containing:

        • Name (required): Job name
        • JobTypeID (required): ID of the job type
        • CronExpression (required): Cron schedule expression
        • IsActive (optional): Whether job is active (default: true)
        • Status (optional): Job status (default: Active)
        • IntervalMinutes (optional): Polling interval in minutes
        • IntervalDays (optional): Polling interval in days
        • Description (optional): Job description

      Returns Promise<ActionResultSimple>

      ActionResultSimple with:

      • Success: true if job was created successfully
      • ResultCode: SUCCESS, VALIDATION_ERROR, or FAILED
      • Params: Output parameter 'JobID' contains the ID of the created job