question

sadrdeen135 avatar image
sadrdeen135 asked

[CloudScript] undefined parameters if ExecuteCloudScript called on Android

hi

try to make ExecuteCloudScriptRequest on android args but TargetId return undefined

but it work fine in pc

var req = new ExecuteCloudScriptRequest() { FunctionName = "AddFriendRequest", FunctionParameter = new { TargetId ="1123"}, GeneratePlayStreamEvent = true }; PlayFabClientAPI.ExecuteCloudScript(req, getFriendR, Error);

no matter what i put in TargetId it always undefined on Cloud Script

thanks

CloudScriptandroid
1 comment
10 |1200

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

sadrdeen135 avatar image sadrdeen135 commented ·

args,TargetId it always undefined

0 Likes 0 ·

1 Answer

·
sadrdeen135 avatar image
sadrdeen135 answered

for anyone get this error just set PlayFabSettings.TitleId and the project will be fine

1 comment
10 |1200

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

Rick Chen avatar image Rick Chen ♦ commented ·

It would be not possible to call the CloudScript if you haven't provided the TitleId, I guess the error you received was "TitleId undefined" instead of the "TargetId undefined".

0 Likes 0 ·

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.