---
schema_version: "1"
id: 1d75ca4ba778906476211b7856a30c514c3b165a26efca932057ee6a71e394a9
title: InvokeSchedule
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformAPIInvokeSchedule.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformAPIInvokeSchedule.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 87f5f60e206adf5741a7e87869130cf054e9ed8fcccce4fec73b5faa78f2a2a2
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# InvokeSchedule

## Overview

Invokes the Schedule method on the specified object

### Syntax

InvokeSchedule(1, 2, 3, 4, 5)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                                         |
| ------- | ------ | ------------ | ------------------------------------------------------------------- |
| **1**   | string | **Required** | Object on which to perform Schedule method                          |
| **2**   | string | **Required** | Method to perform on the object                                     |
| **3**   | string | **Required** | Schedule defintion object to use with Schedule method               |
| **4**   | array  | **Required** | Array containing status and RequestID of API call                   |
| **5**   | string | **Required** | API configure options to include in call. Can contain a null value. |

## Example

```
<script runat="server">
     var rtn = [0,0,0];
     var newObject = Platform.Function.InvokeSchedule(APIObject,"Validate",scheduleDefinition,StatusAndRequestID,Options);
     var statusMessage = StatusAndRequestID[0];
     var errorCode = StatusAndRequestID[1];
     var scheduleResponse = StatusAndRequestID[2];
</script>
```
