I'm trying to use server.ExecuteCloudScript CloudScript to call Azure Function but that says "No function named XYZ was found to execute". Is there a way to call Azure Functions from CloudScript, other than explicitly making an HTTP call?
I'm trying to use server.ExecuteCloudScript CloudScript to call Azure Function but that says "No function named XYZ was found to execute". Is there a way to call Azure Functions from CloudScript, other than explicitly making an HTTP call?
We will spend some time to try to implement this. You may refer to this API first: https://docs.microsoft.com/en-us/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction?view=playfab-rest. Please note that this API belongs to Entity API set.
Azure Functions integration is in public preview - you can read all about it here: https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/. And you can find the page to register your Functions in the Automation section of the Game Manager.
Let me clarify. I have the "old" CloudScript (JavaScript). There are some pretty complex kludges that I've implemented to work around the PlayFab/CloudScript limitations. Now I would like to move these complex parts to Azure, but not everything, and therefore I want to call Azure Function from the JavaScript/CloudScript. I couldn't find anything about that in the documentation.
I have done more tests and it seems currently ExecuteFunction API doesn’t include in Cloud Script implementation, you may still need craft HTTP call to access it in Cloud Script. However, ExecuteFunction API itself has been updated to most of the platform SDKs. You are free to use both of them at the client side.
This would be my choice as the "best answer" but in this forum apparently the people who respond decide their own replies are the best :-D
3 People are following this question.