Skip to main content
Executes a CloudScript function, with the ‘currentPlayerId’ set to the PlayFab ID of the authenticated player. The PlayFab ID is the entity ID of the player’s master_player_account entity.

Syntax

Parameters

entityHandle   PFEntityHandle PFEntityHandle to use for authentication. request   PFCloudScriptExecuteCloudScriptRequest* Populated request object. async   XAsyncBlock*
Inout
XAsyncBlock for the async operation.

Return value

Type: HRESULT Result code for this API operation.

Remarks

This API is available on all platforms. When the asynchronous task is complete, call PFCloudScriptClientExecuteCloudScriptGetResultSize and PFCloudScriptClientExecuteCloudScriptGetResult to get the result.

Requirements

Header: PFCloudScript.h

See also

PFCloudScript members
Last modified on August 3, 2026