I have a server code thats supposed to call PlayFabServerAPI.ExecuteCloudScriptfunction which invokes a azure function. If i am using PlayFabCloudScriptAPI.ExecuteFunction I can locally debug this with azure functions using the demos online. But for PlayFabServerAPI.ExecuteCloudScript it doesnt call the local server. How can I fix this? I need azure functions for server authority and PlayFabCloudScriptAPI.ExecuteFunction requires an entity ID, but i wanna call it with my servers secret key.
Answer by Made Wang · Mar 28 at 06:27 AM
ExecuteCloudScript is designed for calling legacy Cloud Script. For Azure Function Cloud Script, you should call ExecuteFunction. And you can call GetEntityToken on the server to get the Token Id.
This worked thank you. I have 1 more question actually, is it possible to know the playfabIds of the players connected to my server? So from the server I can make calls about those playfabIds.