---
title: "Get Schedule"
description: "Get a schedule by id."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/schedule/get"
---
# Get Schedule

> Get a schedule by id.

<block-meta block="Yes" channels="Any" folder="schedule" group="Schedule" groupTo="/build/workflows/blocks/schedule" icon="i-lucide-calendar" pipe="Value" scope="Any" tool="Yes" type="schedule.get">



</block-meta>

**Get Schedule** loads a one-shot [schedule](https://docs.vettero.com/activity/schedule) by id. Use it after [Create Schedule](https://docs.vettero.com/build/workflows/blocks/schedule/create) (`pipe.value.id`) or with an id from the Schedule list.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Schedule ID
      </strong>
    </td>
    
    <td>
      Schedule id (required; literal or variable)
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the schedule is loaded
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`):

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Schedule id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Name
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        description
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Description when set
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        isActive
      </code>
    </td>
    
    <td>
      boolean
    </td>
    
    <td>
      Whether the job is active
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        mode
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      <code>
        specificTime
      </code>
      
       or <code>
        timeoutMinutes
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        scheduledAt
      </code>
    </td>
    
    <td>
      datetime
    </td>
    
    <td>
      Fire time in specific-time mode
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        timeoutMinutes
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Delay in timeout mode
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        targetType
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      <code>
        agent
      </code>
      
       or <code>
        workflow
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        targetRef
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Target id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        agendaJobId
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Job-runner id when set
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        lastRunAt
      </code>
    </td>
    
    <td>
      datetime
    </td>
    
    <td>
      Last run time when set
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        status
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      <code>
        pending
      </code>
      
      , <code>
        running
      </code>
      
      , <code>
        success
      </code>
      
      , or <code>
        failed
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inputData
      </code>
    </td>
    
    <td>
      object
    </td>
    
    <td>
      Input passed to the target when set
    </td>
  </tr>
</tbody>
</table>

## Use case

- Check `status` before sending a notification that a deferred run finished.
- Branch with a [Condition](https://docs.vettero.com/build/workflows/blocks/condition/condition) on `mode` or `status`.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
