Title ID: 238B
SegmentID:72A0826E43EFD02
I have a segment where the condition is a tag. Screenshot 1 shows that there is 1 user in it. I have this cloud script being called from a scheduled task that simply grabs the segment and prints the users. I know this code works because I have other functions doing a similar thing.
handlers.DailyMembershipReward = function(args, context) { var result = server.GetPlayersInSegment({ MaxBatchSize: 10000, SegmentId: "72A0826E43EFD02" }); if(result) { if(result.ProfilesInSegment != 0) { log.info("# OF USERS: " + result.ProfilesInSegment); for(i = 0; i < result.PlayerProfiles.length; i++) { //Get the profile var profile = result.PlayerProfiles[i]; log.info("{Name : " + profile.DisplayName+","+" PlayFabId: " + profile.PlayerId+"}"); } } else { log.info("MEMBERSHIP SEGMENT IS EMPTY"); } } }
However, when the scheduled task fires it returns an empty list.