Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Feature Requests /
avatar image

Ian Oliver suggested an idea · Oct 18, 2017 at 06:03 PM · CloudScriptapis

Improve GrantItemsToUsers to support item grants from multiple catalogs in a single call

Currently GrantItemsToUsers allows you to grant items from only a single catalog. This is owing to the catalog version being specified separately from the items granted.

It would be great if it was possible to add an optional parameter on the item grants for CatalogVersion. If no catalog is specified, it can use the original CatalogVersion parameter value.

This would be useful to us to reduce the number of calls to GrantItemsForUsers from our cloud script (especially important for actions which are, by default, very limited in call counts).

thub.nodes.view.add-new-comment
Raf
Kevin Bass

People who like this

2 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 comment

· Add your reply
avatar image

Brendan commented · Oct 18, 2017 at 06:46 PM

The design of the catalog system is that you have one catalog for the game, which you iterate on as you update it - hence, the reason it's "CatalogVersion", rather than "CatalogId". Some operations - notably receipt validation - only work with the Primary catalog, in fact. In general, we recommend using that design pattern, and subdivide the catalog items using Stores (which you can also then target by player segment).

thub.nodes.view.add-new-comment

People who like this

0 Show 3
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ian Oliver · Nov 05, 2017 at 07:25 PM 0
Share

If that is the case, it seems like PlayFab may want to update/correct their recipes. Specifically:

  • https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/PrizeWheel
  • https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/SimpleCrossPromotion
  • https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/ProgressiveRewards
  • https://github.com/PlayFab/PlayFab-Samples/tree/master/Recipes/RegeneratingCurrency

All of which explicitly recommends the creation of a separate and distinct catalogs for various purposes separate from the default purchase catalogs.

We have followed this example and we handle special offers, rewards and special virtual currency purchases in separate catalogs. This is part organizational nicety, part efficiency (reducing default catalog bloat), and, apparently inline with the PlayFab recipes I sited above.

Guidance appreciated.

avatar image Brendan ♦♦ Ian Oliver · Nov 05, 2017 at 08:03 PM 0
Share

Yes, that's absolutely the case - I have a bug open on the recipes to have them updated to reflect our best practices. Apologies for any confusion caused.

avatar image marcos Ian Oliver · Jan 21, 2020 at 09:14 PM 0
Share

Just chiming in to say that same as @Ian Oliver we are also using multiple catalogs to denote different types of item listings to great effect. The monotlithic approach to a single go-to inventory for any virtual item does not work well with our game, where different game contexts provide entirely different listings, for items, pictures, collectibles, emojis, etc.

So far has worked fine!


That being said, was very difficult for us to understand what was the official "best practice" in that regard.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Your Opinion Counts

    We would love to know what you need. Submit your ideas and upvote others to help us prioritize.

    Sign in to post a new idea

    Follow

    Follow This Idea

    1 Person is following this .

    avatar image

    Related Ideas

    Add PurchaseItem to the Server API

    API methods/CloudScript functions to interact with multiple Shared Groups at once

    Friend Request with Accept/Decline option

    Remove old Cloud Script revisions using Admin API

    Add VC Recharge Rate to client and server APIs

    Cloud Script environment variables and Admin API to update them

    Playstream events should show input parameters/arguments

    Add ability to configure CloudScript repository

    allow PurchaseItem from server api OR allow GetStoreItems from server api OR add parameter to client.PurchaseItem to copy customdata

    server.EvaluateRandomResultTableRequest() to accept multiple TableIds.

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges