I think people will need more as to what you need the UniqueId of. If you need a Unique Id of a player, it's the PlayFabId, if you need one of a server, it's a LobbyId. Need more specifics before anyone could really help.
I am testing MLAB API using CloudScript. To insert documents into the collections we need to have a unique ID. Is there any Unique ID generator that CloudScript Supports
The PlayFab ID for the user is the unique identifier for that user. When creating documents for that user in another database system, like mLab, the best plan is to use the PlayFab ID together with something (game-specific defined values) to specify the document type. There are a variety of index methods you can use in mLab to accomplish this: https://docs.mongodb.com/manual/indexes/.
3 People are following this question.