question

Takao Kodama avatar image
Takao Kodama asked

why CloudScriptNotFound?

 

I registered an Azure Function as a function and called it from C #, but it is not recognizedHow can I do this?

PlayFab.ServerModels.ExecuteCloudScriptServerRequest req = new PlayFab.ServerModels.ExecuteCloudScriptServerRequest
                {
                    PlayFabId = "XXXXXXXXXXXXX",
                    FunctionName = "AddInventoryItem",
                    FunctionParameter = param,
                    GeneratePlayStreamEvent = true
                };
                PlayFabResult<PlayFab.ServerModels.ExecuteCloudScriptResult> ret = await PlayFab.PlayFabServerAPI.ExecuteCloudScriptAsync(req);
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

ExecuteCloudScript is for legacy Cloud Script. Please use Server-Side Cloud Script - Execute Function - REST API (PlayFab CloudScript) | Microsoft Docs to call Azure Function. Thanks for your understanding.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.