---
schema_version: "1"
id: f359b2a7204d802eed296bd07461acc6d1dbf9546f26ff303a313603dc385d5c
title: SchedulableContext Interface
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_interface_system_schedulablecontext.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_system_schedulablecontext.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 132902e1e86ca176537c4f7c52b0e3f12441aa965ad63daf6ed6f3b711521e1b
description: Represents the parameter type of a method in a class that implements the Schedulable interface and contains the scheduled job ID. This interface is implemented internally by Apex.Returns the ID of the CronTrigger scheduled job.
---
# SchedulableContext Interface

Represents the parameter type of a method in a class that implements the Schedulable interface and contains the scheduled job ID. This interface is implemented internally by Apex.

## Namespace

[System](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_System.htm "The System namespace provides classes and methods for core Apex functionality.")

#### See Also

- [Schedulable Interface](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_system_schedulable.htm#apex_interface_system_schedulable "The class that implements this interface can be scheduled to run at different intervals.")

## SchedulableContext Methods

The following are methods for SchedulableContext.

- **[getTriggerId()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_interface_system_schedulablecontext.htm#apex_System_SchedulableContext_getTriggerId)**  
    Returns the ID of the CronTrigger scheduled job.

### getTriggerId()

Returns the ID of the CronTrigger scheduled job.

#### Signature

public Id getTriggerId()

#### Return Value

Type: [ID](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_id.htm#apex_methods_system_id "Contains methods for the ID primitive data type.")