Execute Function
Cloud Script is one of PlayFab’s most versatile features. It allows client code to request execution of any kind of custom server-side functionality you can implement, and it can be used in conjunction with virtually anything.
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| CloudScriptAzureFunctionsArgumentSizeExceeded | 1471 |
| CloudScriptAzureFunctionsEventHubRequestError | 1579 |
| CloudScriptAzureFunctionsExecutionTimeLimitExceeded | 1470 |
| CloudScriptAzureFunctionsHTTPRequestError | 1473 |
| CloudScriptAzureFunctionsQueueRequestError | 1494 |
| CloudScriptAzureFunctionsReturnSizeExceeded | 1472 |
| InvalidEntityType | 1373 |
Authorizations
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Body
Executes an Azure Function with the profile of the entity that is defined in the request.
Executes an Azure Function with the profile of the entity that is defined in the request.
The name of the CloudScript function to execute
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
The optional entity to perform this action on. Defaults to the currently logged in entity.
Object that is passed in to the function as the FunctionArgument field of the FunctionExecutionContext data structure
Generate a 'entity_executed_cloudscript_function' PlayStream event containing the results of the function execution and other contextual information. This event will show up in the PlayStream debugger console for the player in Game Manager.
