> ## 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.

# PFCloudScriptExecuteCloudScriptResult

> PFCloudScriptExecuteCloudScriptResult data model.

PFCloudScriptExecuteCloudScriptResult data model.

## Syntax

```cpp theme={null}
typedef struct PFCloudScriptExecuteCloudScriptResult {  
    int32_t aPIRequestsIssued;  
    PFCloudScriptScriptExecutionError const* error;  
    double executionTimeSeconds;  
    const char* functionName;  
    PFJsonObject functionResult;  
    bool const* functionResultTooLarge;  
    int32_t httpRequestsIssued;  
    PFCloudScriptLogStatement const* logs;  
    uint32_t logsCount;  
    bool const* logsTooLarge;  
    uint32_t memoryConsumedBytes;  
    double processorTimeSeconds;  
    int32_t revision;  
} PFCloudScriptExecuteCloudScriptResult;  
```

### Members

**`aPIRequestsIssued`**   int32\_t

Number of PlayFab API requests issued by the CloudScript function.

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

(Optional) Information about the error, if any, that occurred during execution.

**`executionTimeSeconds`**   double

ExecutionTimeSeconds property.

**`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 CloudScript 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. This only occurs if the total event size is larger than 350KB.

**`httpRequestsIssued`**   int32\_t

Number of external HTTP requests issued by the CloudScript function.

**`logs`**   [PFCloudScriptLogStatement](/services/playfab/api-references/c/pfcloudscripttypes/structs/pfcloudscriptlogstatement) const\*<br />*may be nullptr*

(Optional) Entries logged during the function execution. These include both entries logged in the function code using log.info() and log.error() and error entries for API and HTTP request failures.

**`logsCount`**   uint32\_t

Count of logs

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

(Optional) Flag indicating if the logs were too large and were subsequently dropped from this event. This only occurs if the total event size is larger than 350KB after the FunctionResult was removed.

**`memoryConsumedBytes`**   uint32\_t

MemoryConsumedBytes property.

**`processorTimeSeconds`**   double

Processor time consumed while executing the function. This does not include time spent waiting on API calls or HTTP requests.

**`revision`**   int32\_t

The revision of the CloudScript that executed.

## Requirements

**Header:** PFCloudScriptTypes.h

## See also

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