Member Junction
    Preparing search index...

    Update Scheduled Job action. Updates an existing scheduled job with new values for specified fields. Only provided fields will be updated; omitted fields remain unchanged.

    await RunAction({
    ActionName: 'Update Scheduled Job',
    Params: [
    { Name: 'JobID', Value: 'F3C4A5B6-...' },
    { Name: 'IsActive', Value: 'false' },
    { Name: 'Status', Value: 'Disabled' }
    ]
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    AuthorizesCaller: boolean

    True when the action authorizes its caller itself, so a public entry point such as the RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller must hold, or reads and writes only with the caller's own permissions. Leave it false for an action that acts with more authority than its caller, or that reaches data or sends messages the caller chooses but could not otherwise reach.

    The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.

    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

    • Updates an existing scheduled job

      Parameters

      • params: RunActionParams

        The action parameters containing:

        • JobID (required): ID of the job to update
        • Name (optional): New job name
        • CronExpression (optional): New cron expression
        • IsActive (optional): New active flag
        • Status (optional): New status (Active, Disabled)
        • IntervalMinutes (optional): New interval in minutes
        • IntervalDays (optional): New interval in days
        • Description (optional): New description

      Returns Promise<ActionResultSimple>

      ActionResultSimple with:

      • Success: true if job was updated successfully
      • ResultCode: SUCCESS, VALIDATION_ERROR, NOT_FOUND, NO_CHANGES, or FAILED
      • Message: Details about what was updated