We are implementing Execute Cloud Script on our Dedicated Server.
We have setup Developer Secret Key and the Title Id:
IPlayFabModuleInterface::Get().GetServerAPI()->SetTitleId(TEXT("TitleID")); IPlayFabModuleInterface::Get().GetServerAPI()->SetDevSecretKey(TEXT("OurDevKey"));
And then Upon Execute Cloud Script , It Requires a Player PlayFabId which prevent us from Executing Server Side Cloud Script. I've Tried Leaving it Empty but the API Returns Invalid Input , PlayFabId is Required.
IPlayFabModuleInterface::Get().GetServerAPI()->SetTitleId(TEXT("TitleID")); IPlayFabModuleInterface::Get().GetServerAPI()->SetDevSecretKey(TEXT("OurDevKey"));<br><br>PlayFab::ServerModels::FExecuteCloudScriptServerRequest AcceptSessionRequest; AcceptSessionRequest.FunctionName = TEXT("acceptSession"); AcceptSessionRequest.FunctionParameter.readFromValue(MakeShareable(new FJsonValueObject(JsonParam))); AcceptSessionRequest.RevisionSelection = PlayFab::ServerModels::CloudScriptRevisionOption::CloudScriptRevisionOptionLatest; bool bWasRequestSent = IPlayFabModuleInterface::Get().GetServerAPI()->ExecuteCloudScript( AcceptSessionRequest, PlayFab::UPlayFabServerAPI::FExecuteCloudScriptDelegate::CreateUObject(this, &UOnlineTaskAcceptSession::ReceivedAcceptSessionSuccess), PlayFab::FPlayFabErrorDelegate::CreateUObject(this, &UOnlineTaskAcceptSession::ReceivedError) );
Looking at the Documentation , PlayFabId is Required for Server Side Execute Cloud Script. How does this Apply to Limitation. In Our Case Dedicated Servers Will invoke a Cloud Script once they are Launched so we don't have a Player List yet. Is it recommended to use a Dummy Player Id , if So what are the Limits?