Hello!
I was trying to create a draft item using Economy V2, with the following data using Unity C#:
PlayFabEconomyAPI.CreateDraftItem(new CreateDraftItemRequest
{
Item = new CatalogItem
{
AlternateIds = new List<CatalogAlternateId> { new CatalogAlternateId { Type = "FriendlyId", Value = "FirstItem" } },
CreatorEntity = new EntityKey { Id = PlayFabSettings.staticPlayer.EntityId, Type = PlayFabSettings.staticPlayer.EntityType },
Type = "catalogItem",
Title = new Dictionary<string, string> { { "NEUTRAL", "FirstItem" } },
CreationDate = DateTime.UtcNow,
StartDate = DateTime.UtcNow
}
}, CreateDraftItemOnSuccess, OnPlayFabCallbackError);
Even though I made sure to have the policy enabled for the Player, I still got the following issue.
/Catalog/CreateDraftItem: Calling Entity does not have permissions to the Item Type.
What is the purpose of having a policy for the CreateDraftItem, if we actually have another layer of policy when trying to set the Type property?
Thank you in advance for your help on that!