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 /
  • General Discussion /
avatar image
Question by Darius Vu · Dec 24, 2020 at 12:46 AM · Player Datagame manager

[Help] How to export the list of contact email of all players?

Dear Team,

As the question, I want to export all contact emails of all players. Do we have any way to export it in Playfab Game Manager side? Or the easiest way to export it?

Thank you so much.

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 Citrus Yan · Dec 24, 2020 at 03:24 AM

There is no way to do it via the Game Manager, however, we do have a API for this kind of job: GetPlayersInSegment. You can use it to retrieve all player profiles in the “All Players” segment, each player’s contact email will be included in their profiles (if they have one), please check out this API reference doc for more details about its usage: https://docs.microsoft.com/zh-cn/rest/api/playfab/admin/playstream/getplayersinsegment?view=playfab-rest

Comment
Darius Vu

People who like this

1 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 Darius Vu · Dec 24, 2020 at 03:46 AM 0
Share

Thank you so much. I am also trying to use Azure Function to call this API function like this:

var getPlayersInSegmentResult = await adminAPI.GetPlayersInSegmentAsync(
new PlayFab.AdminModels.GetPlayersInSegmentRequest(){
                SegmentId = "CEA6XXXXXXXXXXXX",
                MaxBatchSize = 10000,
                SecondsToLive = 1800,
            });

But I have 50,000 users, so how do I use ContinuationToken to call all 50,000 data? Because the MaxBatchSize is only 10,000. I don't understand about that.

Could you give me the example code that using GetPlayersInSegment() to get all users data?

Many thanks.

avatar image Citrus Yan ♦ Darius Vu · Dec 24, 2020 at 05:26 AM 0
Share

ContinuationToken is returned in the response: https://docs.microsoft.com/zh-cn/rest/api/playfab/server/playstream/getplayersinsegment?view=playfab-rest#getplayersinsegmentresult, just use it to get the next batch of 10,000 till you reach the end of 50,000 players. Please check out this thread for more details: GetPlayersInSegment with more than 10,000 players? - Playfab Community

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Player search in game manager not working 1 Answer

    Is there a way to query for a particular google account in GameManager? 1 Answer

    Can send the push notification only while the game is open 1 Answer

    Why when I create a player show this user? 2 Answers

    Save buttons to buy players in the inventory in PlayFab,how do i use the loaded items from the inventory 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