question

Marcel Ernst avatar image
Marcel Ernst asked

GetEntityDraftItems doesn't return moderation state

Hi,

the GetEntityDraftItems request doesn't return the moderation state of the items. The GetItem request does that correctly.

apis
10 |1200

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

kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

Draft Items are only visible to the author and therefore do not have values for Moderation or Ratings or Reviews.

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 answered

There is no PlayFab document mentioning that the GetEntityDraftItems API should return the moderation state of the items. There is a specific API that retrieves an item’s moderation state, which is GetItemModerationState API, you can use this API after you get the item ids.

3 comments
10 |1200

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

Marcel Ernst avatar image Marcel Ernst commented ·

Hi,

the documentation actually mentions a Moderation field, which should contain the moderation state.

0 Likes 0 ·
Rick Chen avatar image Rick Chen ♦ Marcel Ernst commented ·

The field is only indicating that the CatalogItem is having this property, this does not mean that the API will return this field. This is by design.

0 Likes 0 ·
Marcel Ernst avatar image Marcel Ernst Rick Chen ♦ commented ·

Okay, but the GetItem request returns the moderation state. Is there any way to see when a field should be returned and when it's just a common documentation?

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.