---
schema_version: "1"
id: 20ee7864b2a99faaf531fd8a2a4a72c9e252fe8555ef12a6b96dacf35e5e859c
title: FunctionInvocationStatus Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_functions_FunctionInvocationStatus.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_functions_FunctionInvocationStatus.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f3e9bfc0da63fd68610f5929469148e91429ff3d898743b200bd35984fde2c47
description: Represents the status of a Function invocation.
---
# FunctionInvocationStatus Enum

Represents the status of a Function invocation.

## Enum Values

The following are the values of the functions.FunctionInvocationStatus enum.

| Value | Description |
| --- | --- |
| ERROR | The invocation failed. Check the FunctionInvocation and FunctionInvocationError returned by the invoke call to debug the issue. |
| PENDING | The invocation is pending. If the Function is being invoked asynchronously, the invocation is still in the asynch queue. |
| SUCCESS | The invocation succeeded. Use FunctionInvocation.getResponse() with the FunctionInvocation instance returned by the invoke call to get any response returned by the Function. |