Reputation: 655
Is there a way to get the User_Id generated by AppCenter via the nuget?
Based on this comment there are two types of user id's in AppCenter. The one with SetUser, I'm already using, but after exporting data in AppInsights, it looks like the queries are being done with the one generated by AppCenter. In order to retrieve analytics related to my userId, I want to connect those two, but I couldn't find any info/way of retrieving the generated user_id via the AppCenter nuget.
Upvotes: 1
Views: 1732
Reputation: 655
After more search and investigations on this topic, I found out that this is a known issues for the Analytics logs of AppCenter. In order to get around it, you can use the CustomProperties field and then query that one as in example here.
If you don't want to click one more link, the query looks like:
customEvents
| extend properties = todynamic(tostring(customDimensions.Properties))
| extend userID = tostring(properties.UserID) // assuming you named the property UserID on the client side
| where isnotempty(userID) // this will be empty if you haven't set it as a property in the SDK
Upvotes: 4