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 /
  • API and SDK Questions /
avatar image
Question by tekunikaruza · Feb 08, 2021 at 05:35 AM · PlayStream

How to use "Namespace" of GetPlayerTags

I'm trying to use "PlayerStream - GetPlayerTags" (Client).

This request has parameter "Namespace", and the reference explains "Optional namespace to filter results by".

I understand that if I don't specify this parameter, I get the following response:

{
  "code": 200,
  "status": "OK",
  "data": {
    "PlayFabId": "HOGEHOGE",
    "Tags": [
      "title.{TitleId}.Example.TagName14",
      "title.{TitleId}.Example.TagName3",
      "title.{TitleId}.Sample.TagName9"
    ]
  }
}

For example, if I want to filter by "title. {TitleId} .Example" to get the tags, can I control it with the "Namespace" parameter? I tried regular expressions and wildcards, but both returned an empty tags list.

I expect the following response:

{
  "code": 200,
  "status": "OK",
  "data": {
    "PlayFabId": "HOGEHOGE",
    "Tags": [
      "title.{TitleId}.Example.TagName14",
      "title.{TitleId}.Example.TagName3",
    ]
  }
}
Comment

People who like this

0 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 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Feb 09, 2021 at 07:12 AM

As this documentation -- Play Stream - Add Player Tag (PlayFab Server) | Microsoft Docs said, the tag’s namespace is generated automatically based on the source of the tag. Currently, the custom namespace is not supported. If you want this API add the feature of custom namespace, you can try to add a feature request for it.

Comment

People who like this

0 Show 2 · Share
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 tekunikaruza · Feb 09, 2021 at 07:29 AM 0
Share

Thank you for your answer. I understand that custom namespaces are not supported.

So what does the "Namespace" parameter mean? Shouldn't this parameter be used?

avatar image Sarah Zhang tekunikaruza · Feb 16, 2021 at 01:58 AM 0
Share

Currently, the only valid namespace of player tags is “title.[TitleId]”. Setting it to other namespaces wouldn’t make sense.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Can I pass properties from a Rule into the arguments of a ExecuteCloudScript Action? 1 Answer

    Changing Stats from multiple Players 1 Answer

    Cloudscript request arguments in playstream 1 Answer

    CloudScript: How can I mark suspicious players? 1 Answer

    How long until a task executed on a specific player 1 Answer

    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