Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
HRESULT PFCloudScriptServerExecuteCloudScriptAsync(
PFEntityHandle titleEntityHandle,
const PFCloudScriptExecuteCloudScriptServerRequest* request,
XAsyncBlock* async
)
Parameters
titleEntityHandle PFEntityHandle
PFEntityHandle for a title Entity obtained using PFAuthenticationGetEntityWithSecretKeyAsync.
request PFCloudScriptExecuteCloudScriptServerRequest*
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 Win32, Linux, and macOS. When the asynchronous task is complete, call PFCloudScriptServerExecuteCloudScriptGetResultSize and PFCloudScriptServerExecuteCloudScriptGetResult to get the result.
Requirements
Header: PFCloudScript.h