Forum Discussion

BennettCarter's avatar
12 days ago
Solved

How To Get All users Regardless Of Current Connection Status

 I am trying to retrieve a list of all users  including their last connected datetime, which doesnt seem to be included in the results for entity lookup. I do get this field from accountSnapshot, but...
  • peter's avatar
    11 days ago

    Hello Bennett,

    It's a two step process where you call entityLookup to get a list of users, then you take their IDs and supply them as input to the accountSnapshot query. The entityLookup query looks like this (obviously replace with your account ID):

    and then the corresponding accountSnapshot for those three users will look like this: