question

brendan avatar image
brendan asked

UpdateUserInventoryItemCustomDataRequest does not exist in the namespace `PlayFab.ServerModels

amieldanao
started a topic on Sun, 07 June 2015 at 1:29 AM

So I'm trying to change/update my player's item custom data using : PlayFabServerAPI.UpdateUserInventoryItemCustomData

but it throws that error,

btw I'm using

ApiRevision = "1.2.7";

SdkRevision = "1.0.6"

Here is my code, am I missing something here?

or just the function is not really there yet?

PlayFab.ServerModels.UpdateUserInventoryItemCustomDataRequest request = new PlayFab.ServerModels.UpdateUserInventoryItemCustomDataRequest();
                request.PlayFabId = currPlayFabId;
                request.ItemInstanceId = result.Inventory[i].ItemInstanceId;

                Dictionary<string,string> tempData = new Dictionary<string,string>();
                tempData.Add("onHand","false");
                tempData.Add("equipped","false");

                request.Data = tempData;
                PlayFabServerAPI.UpdateUserInventoryItemCustomData(request,wowFunction,OnPlayFabError);
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

·
brendan avatar image
brendan answered

2 Comments
amieldanao said on Sun, 07 June 2015 at 2:56 AM

wait a minute! Found out it's just a typo,lol...
it's UpdateUserInventoryItemDataResult
instead of UpdateUserInventoryItemCustomDataResult????
and UpdateUserInventoryItemDataRequest
instead of UpdateUserInventoryItemCustomDataRequest????
wow, solved!


Brendan Vanous said on Mon, 08 June 2015 at 5:56 PM

Indeed it it - well spotted. :)

Sorry if that's confusing - the request/response was seen as being more generic in this case, but I'll make sure to call it out more clearly in the docs.

Brendan

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.