Thank you for your reply. I looked at the thread you suggested, but I'm not sure that it provides a workable solution. The first suggestion in that thread was to use linq to query a user profile, but I don't know who the user is until I've matched the custom field in the profile. The second suggestion was to get all users in the database and then loop through their profiles until finding the matching custom field value. This solution seems very inefficient since we will have tens of thousands of users.
I would like to do something similar to what Victor had suggested in the other thread, but without knowing the user ahead of time. Here's an example of what I would like to do (notice I do not pass a user).
var pm3 = App.WorkWith().UserProfiles().UserProfiles().Where(uP => uP.GetValue<String>(
Is there any way to accomplish something similar to the above code?