---
schema_version: "1"
id: fb00d94744fb136ddb94af6e222ba015750f8c72574c3a05bff8b5b3ff954ef9
title: InvokePerform
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformAPIInvokePerform.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformAPIInvokePerform.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f5c367cbcd611b95d2449b4216887dc77e45ca2eb6ea4b19a0f2485df4caa282
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# InvokePerform

## Overview

Invokes the Perform method on the specified object

### Syntax

InvokePerform(1, 2, 3, 4)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                                         |
| ------- | ------ | ------------ | ------------------------------------------------------------------- |
| **1**   | string | **Required** | Object on which to perform Perform method                           |
| **2**   | string | **Required** | Method to perform on the object                                     |
| **3**   | array  | **Required** | Array containing status and RequestID of API call                   |
| **4**   | 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.InvokePerform(APIObject,"Validate",StatusAndRequestID,Options);
     var statusMessage = StatusAndRequestID[0];
     var errorCode = StatusAndRequestID[1];
     var performResponse = StatusAndRequestID[2];
</script>
```
