> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFCloudScriptExecuteFunctionResult

> PFCloudScriptExecuteFunctionResult data model.

PFCloudScriptExecuteFunctionResult data model.

## Syntax

```cpp theme={null}
typedef struct PFCloudScriptExecuteFunctionResult {  
    PFCloudScriptFunctionExecutionError const* error;  
    int32_t executionTimeMilliseconds;  
    const char* functionName;  
    PFJsonObject functionResult;  
    bool const* functionResultTooLarge;  
} PFCloudScriptExecuteFunctionResult;  
```

### Members

**`error`**   [PFCloudScriptFunctionExecutionError](/services/playfab/api-references/c/pfcloudscripttypes/structs/pfcloudscriptfunctionexecutionerror) const\*<br />*may be nullptr*

(Optional) Error from the CloudScript Azure Function.

**`executionTimeMilliseconds`**   int32\_t

The amount of time the function took to execute.

**`functionName`**   const char\*<br />*is null-terminated*

(Optional) The name of the function that executed.

**`functionResult`**   [PFJsonObject](/services/playfab/api-references/c/pftypes/structs/pfjsonobject)

(Optional) The object returned from the function, if any.

**`functionResultTooLarge`**   bool const\*<br />*may be nullptr*

(Optional) Flag indicating if the FunctionResult was too large and was subsequently dropped from this event.

## Requirements

**Header:** PFCloudScriptTypes.h

## See also

[PFCloudScriptTypes members](/services/playfab/api-references/c/pfcloudscripttypes/pfcloudscripttypes_members)
