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

# function_executed

> function_executed event.

This event is triggered when a CloudScript function is executed.

## Properties

| Name                      | Type                                                                                              | Description                                                        |
| :------------------------ | :------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------- |
| ExecutionTimeMilliseconds | int                                                                                               | The execution time of the function in milliseconds.                |
| FunctionName              | String                                                                                            | The name of the function that was executed.                        |
| Result                    | [ExecuteFunctionResult](/services/playfab/api-references/events/data-types/executefunctionresult) | The result returned by the function execution.                     |
| ResultTooLarge            | Boolean                                                                                           | Indicates if the result was too large to return and was truncated. |
| Source                    | String                                                                                            | The source or trigger that caused the function to execute.         |

## Common Properties

All V2 PlayStream events are formatted as JSON objects and most share the following common properties:

| Name               | Type                                                                          | Description                                                                               |
| :----------------- | :---------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------- |
| SchemaVersion      | String                                                                        | PlayStream event format version, following a semantic versioning scheme.                  |
| FullName           | [Object](/services/playfab/api-references/events/data-types/fullnameobject)   | Combination of the event name and event namespace to fully specify the event type.        |
| Id                 | String                                                                        | PlayFab-assigned unique identifier for this event.                                        |
| Timestamp          | DateTime                                                                      | The time (in UTC) associated with this event.                                             |
| Entity             | [Object](/services/playfab/api-references/events/data-types/entityobject)     | Details about the entity to which this event applies including Entity Id and Entity type. |
| Originator         | [Object](/services/playfab/api-references/events/data-types/originatorobject) | Object describing the source and source type that initiated this event.                   |
| PayloadContentType | String                                                                        | Specifies the content of the event payload. Default is "JSON".                            |
| Origin Info        | Object                                                                        | Optional field containing info about events originating outside of PlayFab.               |


## Related topics

- [PlayStream event model reference for PlayFab](/services/playfab/api-references/events/index.md)
- [title_scheduled_function_executed](/services/playfab/api-references/events/Functions/title-scheduled-function-executed.md)
- [player_triggered_action_executed_function](/services/playfab/api-references/events/Functions/player-triggered-action-executed-function.md)
- [cloudscript_executed](/services/playfab/api-references/events/CloudScript/cloudscript-executed.md)
- [action_executed](/services/playfab/api-references/events/PlayStream/action-executed.md)
